summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-03-09 14:08:10 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-09 08:39:07 -0500
commita24f7f1275b3bd9cf4adbb0b4ed7ab86357e66fa (patch)
tree01a7d7dffc6079d04270800c264f242b1f89e2cc
parentbd0e9767ebfa888971db18f8e07ce8eb21142ee6 (diff)
downloadsssd-a24f7f1275b3bd9cf4adbb0b4ed7ab86357e66fa.tar.gz
sssd-a24f7f1275b3bd9cf4adbb0b4ed7ab86357e66fa.tar.bz2
sssd-a24f7f1275b3bd9cf4adbb0b4ed7ab86357e66fa.zip
Use of unininitialized value in sss_sudo_parse_response
https://fedorahosted.org/sssd/ticket/1231
-rw-r--r--src/sss_client/sudo/sss_sudo_response.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sss_client/sudo/sss_sudo_response.c b/src/sss_client/sudo/sss_sudo_response.c
index 0c11cc00..1a8c7290 100644
--- a/src/sss_client/sudo/sss_sudo_response.c
+++ b/src/sss_client/sudo/sss_sudo_response.c
@@ -70,6 +70,8 @@ int sss_sudo_parse_response(const char *message,
return ENOMEM;
}
+ memset(result, 0, sizeof(struct sss_sudo_result));
+
/* rules_num */
ret = sss_sudo_parse_uint32(message, message_len,
&cursor, &result->num_rules);