From 4c1e00967cd426a6f1d1c73f9b739c2a4cf28c90 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(+) diff --git a/src/responder/sudo/sudosrv_cache.c b/src/responder/sudo/sudosrv_cache.c index ee44a5ad6..00dcb88c8 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