diff options
author | Andreas Schneider <asn@samba.org> | 2015-01-22 10:13:37 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-01-22 20:29:07 +0100 |
commit | cb27bd1022caa42ccbf37e827347c13fa54619c6 (patch) | |
tree | c055b5f11c5981d79dffc511b8ba2467a9cc5ac9 /source3/pam_smbpass | |
parent | 29cfa2a7141784086a46e94e7cf6556a7360b6be (diff) | |
download | samba-cb27bd1022caa42ccbf37e827347c13fa54619c6.tar.gz |
s3-pam_smbpass: Remove superfluous NULL check for pam functions.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/pam_smbpass')
-rw-r--r-- | source3/pam_smbpass/pam_smb_auth.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/pam_smbpass/pam_smb_auth.c b/source3/pam_smbpass/pam_smb_auth.c index 1b8ae5eb85a..ea25d77ac0e 100644 --- a/source3/pam_smbpass/pam_smb_auth.c +++ b/source3/pam_smbpass/pam_smb_auth.c @@ -214,9 +214,6 @@ static int _smb_add_user(pam_handle_t *pamh, unsigned int ctrl, , "pam_get_item returned error to pam_sm_authenticate" ); TALLOC_FREE(frame); return PAM_AUTHTOK_RECOVER_ERR; - } else if (pass == NULL) { - TALLOC_FREE(frame); - return PAM_AUTHTOK_RECOVER_ERR; } /* Add the user to the db if they aren't already there. */ |