summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-06-09 13:02:47 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-06-09 08:29:34 -0400
commitcd08e2f935f70ea884520793588b43ad8114465a (patch)
treef4f0d41e33185fd9f5d1e292f9a4c078f191952d
parent855abda5ed5a0dcae499632ed5ead1d4cd293b48 (diff)
downloadsssd-cd08e2f935f70ea884520793588b43ad8114465a.tar.gz
sssd-cd08e2f935f70ea884520793588b43ad8114465a.tar.bz2
sssd-cd08e2f935f70ea884520793588b43ad8114465a.zip
Avoid a potential double-free
-rw-r--r--src/sss_client/pam_sss.c1
1 files changed, 1 insertions, 0 deletions
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,