Fix "warning: 'cmd' may be used uninitialized in this function"
authorJeremy Allison <jra@samba.org>
Fri, 15 Feb 2008 02:16:09 +0000 (18:16 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 15 Feb 2008 02:16:09 +0000 (18:16 -0800)
Jeremy.

source/nsswitch/libwbclient/wbc_pam.c

index e7bcdfe20d7af826a5fda704097611ce5479745e..d614474cb71fda4afad27364f50255a5e7c4c893 100644 (file)
@@ -334,6 +334,9 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
                       request.data.auth_crap.nt_resp_len);
 
                break;
+       default:
+               wbc_status = WBC_ERR_INVALID_PARAM;
+               BAIL_ON_WBC_ERROR(wbc_status);
        }
 
        wbc_status = wbcRequestResponse(cmd,