summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-13 12:27:18 +0200
committerVolker Lendecke <vl@samba.org>2010-04-13 13:28:39 +0200
commitfcab3d64f496693c70cc1ff1bcf1cf439a15fcf1 (patch)
treee613bc1aea62600530b85e91a781d47d4487d374
parent974025944e6bd59a79638f185a6268903f396fa6 (diff)
downloadsamba-fcab3d64f496693c70cc1ff1bcf1cf439a15fcf1.tar.gz
samba-fcab3d64f496693c70cc1ff1bcf1cf439a15fcf1.tar.bz2
samba-fcab3d64f496693c70cc1ff1bcf1cf439a15fcf1.zip
libwbclient: Remove a pointless variable
-rw-r--r--nsswitch/libwbclient/wbc_pam.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c
index b35284b243..8cc4c71642 100644
--- a/nsswitch/libwbclient/wbc_pam.c
+++ b/nsswitch/libwbclient/wbc_pam.c
@@ -965,7 +965,6 @@ wbcErr wbcLogonUser(const struct wbcLogonUserParams *params,
struct wbcUserPasswordPolicyInfo **policy)
{
wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
- int cmd = 0;
struct winbindd_request request;
struct winbindd_response response;
uint32_t i;
@@ -1004,7 +1003,6 @@ wbcErr wbcLogonUser(const struct wbcLogonUserParams *params,
/* Initialize request */
- cmd = WINBINDD_PAM_AUTH;
request.flags = WBFLAG_PAM_INFO3_TEXT |
WBFLAG_PAM_USER_SESSION_KEY |
WBFLAG_PAM_LMKEY;
@@ -1066,7 +1064,7 @@ wbcErr wbcLogonUser(const struct wbcLogonUserParams *params,
}
}
- wbc_status = wbcRequestResponse(cmd,
+ wbc_status = wbcRequestResponse(WINBINDD_PAM_AUTH,
&request,
&response);