diff options
-rw-r--r-- | source3/lib/util_pw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/util_pw.c b/source3/lib/util_pw.c index e0dbc97f00..e138273e8b 100644 --- a/source3/lib/util_pw.c +++ b/source3/lib/util_pw.c @@ -59,10 +59,7 @@ struct passwd *getpwnam_alloc(TALLOC_CTX *mem_ctx, const char *name) cached = tcopy_passwd(talloc_autofree_context(), temp); if (cached == NULL) { - /* - * Just don't add this into the cache, ignore the failure - */ - return temp; + return NULL; } memcache_add_talloc(NULL, GETPWNAM_CACHE, data_blob_string_const_null(name), |