From cd08e2f935f70ea884520793588b43ad8114465a Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 9 Jun 2010 13:02:47 +0200 Subject: Avoid a potential double-free --- src/sss_client/pam_sss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c index d2758004..d11fc0af 100644 --- a/src/sss_client/pam_sss.c +++ b/src/sss_client/pam_sss.c @@ -212,6 +212,7 @@ static void overwrite_and_free_pam_items(struct pam_items *pi) pi->pamstack_oldauthtok = NULL; free(pi->domain_name); + pi->domain_name = NULL; } static int pack_message_v3(struct pam_items *pi, size_t *size, -- cgit