summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-04-22 16:58:51 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-04-22 14:30:57 -0400
commit46e41c1b8cf6fc03c827ceea011833ba47b45db7 (patch)
tree85d1e3b4ad7bf85a3eda77925d7a6ef5348985a0 /server
parentb2a771f96f6344841a78015a591418e5ab6ef608 (diff)
downloadsssd-46e41c1b8cf6fc03c827ceea011833ba47b45db7.tar.gz
sssd-46e41c1b8cf6fc03c827ceea011833ba47b45db7.tar.bz2
sssd-46e41c1b8cf6fc03c827ceea011833ba47b45db7.zip
fix for a seq fault when pam_reply_delay is called.
see https://fedorahosted.org/sssd/ticket/25
Diffstat (limited to 'server')
-rw-r--r--server/responder/pam/pamsrv_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c
index e229862c..45f44c3e 100644
--- a/server/responder/pam/pamsrv_cmd.c
+++ b/server/responder/pam/pamsrv_cmd.c
@@ -172,6 +172,8 @@ static void pam_reply(struct pam_auth_req *preq)
}
}
+ cctx = preq->cctx;
+
if (pd->response_delay > 0) {
ret = gettimeofday(&tv, NULL);
if (ret != EOK) {
@@ -194,8 +196,6 @@ static void pam_reply(struct pam_auth_req *preq)
return;
}
- cctx = preq->cctx;
-
ret = sss_packet_new(cctx->creq, 0, sss_packet_get_cmd(cctx->creq->in),
&cctx->creq->out);
if (ret != EOK) {