libwbclient: fix Coverity ID 536 remove duplicate error path (dead code).
authorMichael Adam <obnox@samba.org>
Thu, 27 Mar 2008 10:51:31 +0000 (11:51 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 27 Mar 2008 10:51:31 +0000 (11:51 +0100)
I leave the more explicit error path in the "if (cmd == 0)" block.

Michael
(This used to be commit 2ae19b5fb89e0a992962af14a81b641bf13b7892)

source3/nsswitch/libwbclient/wbc_pam.c

index c1457ccd087925c6f538c2593db6fd0460d24757..2b33f55990a15a1fa87c8250b76f2bfd279e7665 100644 (file)
@@ -384,8 +384,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
                }
                break;
        default:
-               wbc_status = WBC_ERR_INVALID_PARAM;
-               BAIL_ON_WBC_ERROR(wbc_status);
+               break;
        }
 
        if (cmd == 0) {