diff options
author | Andreas Schneider <asn@samba.org> | 2014-07-31 10:19:28 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-07-31 18:49:48 +0200 |
commit | 41d7b64744c4ed33634ad106e5becd1d816f33a2 (patch) | |
tree | e8dfb04ea6d4bf564621938c2c66089d1d93b6d3 /lib | |
parent | 0a3d14248473be3d964d50b75b92a6328b8f82cd (diff) | |
download | samba-41d7b64744c4ed33634ad106e5becd1d816f33a2.tar.gz |
uwrap: Log error if we are out of memory.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uid_wrapper/uid_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.c b/lib/uid_wrapper/uid_wrapper.c index eec6d967423..0bc961ebdf7 100644 --- a/lib/uid_wrapper/uid_wrapper.c +++ b/lib/uid_wrapper/uid_wrapper.c @@ -490,12 +490,14 @@ static int uwrap_new_id(pthread_t tid, bool do_alloc) if (do_alloc) { id = malloc(sizeof(struct uwrap_thread)); if (id == NULL) { + UWRAP_LOG(UWRAP_LOG_ERROR, "Unable to allocate memory"); errno = ENOMEM; return -1; } id->groups = malloc(sizeof(gid_t) * 1); if (id->groups == NULL) { + UWRAP_LOG(UWRAP_LOG_ERROR, "Unable to allocate memory"); SAFE_FREE(id); errno = ENOMEM; return -1; |