summaryrefslogtreecommitdiffstats
path: root/src/sss_client
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 /src/sss_client
parentbd0e9767ebfa888971db18f8e07ce8eb21142ee6 (diff)
downloadsssd_unused-a24f7f1275b3bd9cf4adbb0b4ed7ab86357e66fa.zip
sssd_unused-a24f7f1275b3bd9cf4adbb0b4ed7ab86357e66fa.tar.gz
sssd_unused-a24f7f1275b3bd9cf4adbb0b4ed7ab86357e66fa.tar.xz
Use of unininitialized value in sss_sudo_parse_response
https://fedorahosted.org/sssd/ticket/1231
Diffstat (limited to 'src/sss_client')
-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 0c11cc0..1a8c729 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);