diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-03-09 14:10:45 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-09 08:39:23 -0500 |
commit | 4c1e00967cd426a6f1d1c73f9b739c2a4cf28c90 (patch) | |
tree | ba533955e48fb11b41a111605dc0308b564157ab | |
parent | 45a407be19027e7e9c2917f3fb93b5f672601e26 (diff) | |
download | sssd-4c1e00967cd426a6f1d1c73f9b739c2a4cf28c90.tar.gz sssd-4c1e00967cd426a6f1d1c73f9b739c2a4cf28c90.tar.xz sssd-4c1e00967cd426a6f1d1c73f9b739c2a4cf28c90.zip |
Use of unininitialized value in sudosrv_cache_set_entry and sudosrv_cache_lookup_internal
https://fedorahosted.org/sssd/ticket/1232
-rw-r--r-- | src/responder/sudo/sudosrv_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |