diff options
author | Sumit Bose <sbose@redhat.com> | 2010-01-18 20:06:30 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-01-20 08:56:00 -0500 |
commit | 7dbf736ebe7e4f655f50a9e19437ca42189abf92 (patch) | |
tree | 9584e7ca18ba1ea05d6cbf68a8bfdd6a610c98f0 /server | |
parent | b8c8639a95511e602ce5268dc8a63cf76cbf1d82 (diff) | |
download | sssd-7dbf736ebe7e4f655f50a9e19437ca42189abf92.tar.gz sssd-7dbf736ebe7e4f655f50a9e19437ca42189abf92.tar.bz2 sssd-7dbf736ebe7e4f655f50a9e19437ca42189abf92.zip |
Fix a double free bug
Diffstat (limited to 'server')
-rw-r--r-- | server/responder/pam/pamsrv_cmd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c index ca41d641..8a7ccd95 100644 --- a/server/responder/pam/pamsrv_cmd.c +++ b/server/responder/pam/pamsrv_cmd.c @@ -687,7 +687,6 @@ static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd) if (blen >= sizeof(uint32_t) && ((uint32_t *)(&body[blen - sizeof(uint32_t)]))[0] != END_OF_PAM_REQUEST) { DEBUG(1, ("Received data not terminated.\n")); - talloc_free(preq); ret = EINVAL; goto done; } @@ -711,7 +710,6 @@ static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd) ret = EINVAL; } if (ret != EOK) { - talloc_free(preq); ret = EINVAL; goto done; } @@ -722,7 +720,6 @@ static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd) if (strcasecmp(dom->name, pd->domain) == 0) break; } if (!dom) { - talloc_free(preq); ret = ENOENT; goto done; } |