diff options
author | Sumit Bose <sbose@redhat.com> | 2010-06-09 13:02:47 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-09 08:29:34 -0400 |
commit | cd08e2f935f70ea884520793588b43ad8114465a (patch) | |
tree | f4f0d41e33185fd9f5d1e292f9a4c078f191952d /src | |
parent | 855abda5ed5a0dcae499632ed5ead1d4cd293b48 (diff) | |
download | sssd-cd08e2f935f70ea884520793588b43ad8114465a.tar.gz sssd-cd08e2f935f70ea884520793588b43ad8114465a.tar.bz2 sssd-cd08e2f935f70ea884520793588b43ad8114465a.zip |
Avoid a potential double-free
Diffstat (limited to 'src')
-rw-r--r-- | src/sss_client/pam_sss.c | 1 |
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, |