From a52139666b8217909c17ebb1b8eec1785194b894 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 14 Dec 2010 10:30:29 +0100 Subject: Remove unused newauthtok variable in LOCAL_pam_handler https://fedorahosted.org/sssd/ticket/716 --- src/responder/pam/pam_LOCAL_domain.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/responder/pam/pam_LOCAL_domain.c b/src/responder/pam/pam_LOCAL_domain.c index 0df9499d..6e0631aa 100644 --- a/src/responder/pam/pam_LOCAL_domain.c +++ b/src/responder/pam/pam_LOCAL_domain.c @@ -230,7 +230,6 @@ int LOCAL_pam_handler(struct pam_auth_req *preq) struct ldb_result *res; const char *username = NULL; const char *password = NULL; - char *newauthtok = NULL; char *new_hash = NULL; char *authtok = NULL; struct pam_data *pd = preq->pd; @@ -352,8 +351,6 @@ done: memset(authtok, 0, pd->authtok_size); if (pd->newauthtok != NULL) memset(pd->newauthtok, 0, pd->newauthtok_size); - if (newauthtok != NULL) - memset(newauthtok, 0, pd->newauthtok_size); prepare_reply(lreq); return EOK; -- cgit