summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}