summaryrefslogtreecommitdiff
path: root/server/responder
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-04-23 12:56:08 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-04-23 09:06:27 -0400
commita03f9612e6560d4aa32e2813cce1bad88b550713 (patch)
treed30d82efc6df5a784c8b7e41052d046ffa089ca9 /server/responder
parent1e08c6f901ad477d9be4b74942487bb3e8573ce3 (diff)
downloadsssd-a03f9612e6560d4aa32e2813cce1bad88b550713.tar.gz
sssd-a03f9612e6560d4aa32e2813cce1bad88b550713.tar.bz2
sssd-a03f9612e6560d4aa32e2813cce1bad88b550713.zip
removed length of unused element from packet size calculation
The domain name is no longer send as an element on its own, but if set as a member of the response array. If the user was not found pd->domain is NULL and strlen will seg-fault.
Diffstat (limited to 'server/responder')
-rw-r--r--server/responder/pam/pamsrv_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c
index 45f44c3e..158cb32d 100644
--- a/server/responder/pam/pamsrv_cmd.c
+++ b/server/responder/pam/pamsrv_cmd.c
@@ -217,7 +217,7 @@ static void pam_reply(struct pam_auth_req *preq)
resp = resp->next;
}
- ret = sss_packet_grow(cctx->creq->out, sizeof(int32_t) + strlen(pd->domain)+1 +
+ ret = sss_packet_grow(cctx->creq->out, sizeof(int32_t) +
sizeof(int32_t) +
resp_c * 2* sizeof(int32_t) +
resp_size);