summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-03-09 14:10:45 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-09 08:37:42 -0500
commitbd0e9767ebfa888971db18f8e07ce8eb21142ee6 (patch)
treea0755e7aabb892dab916740572a59b9fcb8357df /src
parent69aa2d8a19ef26f375c9e94651597bbcff0fc095 (diff)
downloadsssd-bd0e9767ebfa888971db18f8e07ce8eb21142ee6.tar.gz
sssd-bd0e9767ebfa888971db18f8e07ce8eb21142ee6.tar.bz2
sssd-bd0e9767ebfa888971db18f8e07ce8eb21142ee6.zip
Use of unininitialized value in sudosrv_cache_set_entry and sudosrv_cache_lookup_internal
https://fedorahosted.org/sssd/ticket/1232
Diffstat (limited to 'src')
-rw-r--r--src/responder/sudo/sudosrv_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/responder/sudo/sudosrv_cache.c b/src/responder/sudo/sudosrv_cache.c
index ee44a5ad..00dcb88c 100644
--- a/src/responder/sudo/sudosrv_cache.c
+++ b/src/responder/sudo/sudosrv_cache.c
@@ -107,6 +107,7 @@ errno_t sudosrv_cache_set_entry(struct tevent_context *ev,
tmp_ctx = talloc_new(NULL);
if (tmp_ctx == NULL) {
+ ret = ENOMEM;
goto done;
}
@@ -227,6 +228,7 @@ static errno_t sudosrv_cache_lookup_internal(hash_table_t *table,
tmp_ctx = talloc_new(NULL);
if (tmp_ctx == NULL) {
+ ret = ENOMEM;
goto done;
}