summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-01-25 08:52:48 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-01-25 09:08:39 -0500
commit573f1d6e29dbd4c1ab6a560f4f2da3a0512832e3 (patch)
tree8c16dedcd8bd8c67add41772060ca6e6bc0e61e1
parent79cafdcc25948300e2b0c85955b67b0d0c4c73c7 (diff)
downloadsssd-573f1d6e29dbd4c1ab6a560f4f2da3a0512832e3.tar.gz
sssd-573f1d6e29dbd4c1ab6a560f4f2da3a0512832e3.tar.xz
sssd-573f1d6e29dbd4c1ab6a560f4f2da3a0512832e3.zip
Fix size error on 64-bit systems
-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 324ab8352..bc7685368 100644
--- a/server/responder/pam/pamsrv_cmd.c
+++ b/server/responder/pam/pamsrv_cmd.c
@@ -33,7 +33,7 @@
static void pam_reply(struct pam_auth_req *preq);
static int extract_authtok(uint32_t *type, uint32_t *size, uint8_t **tok, uint8_t *body, size_t blen, size_t *c) {
- size_t data_size;
+ uint32_t data_size;
if (blen-(*c) < 2*sizeof(uint32_t)) return EINVAL;