diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-07-22 09:56:45 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-07-22 13:51:31 +0200 |
commit | 1b3144586978c47506eaa39db505e6231e3b0c0a (patch) | |
tree | 5fe711aeadd8058b553d125f5e42646645fbba0b | |
parent | 758ce3f01b4ed73c3bc35cd7039fac26fdf16386 (diff) | |
download | sssd-1b3144586978c47506eaa39db505e6231e3b0c0a.tar.gz sssd-1b3144586978c47506eaa39db505e6231e3b0c0a.tar.bz2 sssd-1b3144586978c47506eaa39db505e6231e3b0c0a.zip |
SUDO: realloc with sizeof(uint32_t) when adding uint32_t
-rw-r--r-- | src/responder/sudo/sudosrv_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_query.c b/src/responder/sudo/sudosrv_query.c index d88d2472..c60202f5 100644 --- a/src/responder/sudo/sudosrv_query.c +++ b/src/responder/sudo/sudosrv_query.c @@ -60,7 +60,7 @@ static int sudosrv_response_append_uint32(TALLOC_CTX *mem_ctx, uint8_t *response_body = *_response_body; response_body = talloc_realloc(mem_ctx, response_body, uint8_t, - response_len + sizeof(int)); + response_len + sizeof(uint32_t)); if (response_body == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, ("talloc_realloc() failed\n")); return ENOMEM; |