From bd0e9767ebfa888971db18f8e07ce8eb21142ee6 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Fri, 9 Mar 2012 14:10:45 +0100 Subject: Use of unininitialized value in sudosrv_cache_set_entry and sudosrv_cache_lookup_internal https://fedorahosted.org/sssd/ticket/1232 --- src/responder/sudo/sudosrv_cache.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/responder') 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; } -- cgit