summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-14 18:16:09 -0800
committerJeremy Allison <jra@samba.org>2008-02-14 18:16:09 -0800
commit58b0f022ffce7fda531f6f8ea7392a963e8ec0c5 (patch)
tree23ce578ea39acb5092f7d497137e8dee223d37cd
parent8767a0dab95c544878b4187157e494e740974bb8 (diff)
downloadsamba-58b0f022ffce7fda531f6f8ea7392a963e8ec0c5.tar.gz
samba-58b0f022ffce7fda531f6f8ea7392a963e8ec0c5.tar.xz
samba-58b0f022ffce7fda531f6f8ea7392a963e8ec0c5.zip
Fix "warning: 'cmd' may be used uninitialized in this function"
Jeremy.
-rw-r--r--source/nsswitch/libwbclient/wbc_pam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/nsswitch/libwbclient/wbc_pam.c b/source/nsswitch/libwbclient/wbc_pam.c
index e7bcdfe20d7..d614474cb71 100644
--- a/source/nsswitch/libwbclient/wbc_pam.c
+++ b/source/nsswitch/libwbclient/wbc_pam.c
@@ -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,