summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2007-08-14 07:15:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:01:49 -0500
commitc5719336dd6fdf7184c6858afb178804fb2ac435 (patch)
treedcc56b6cd86124e0bd56912fc5b33513a3464f80
parent1ea23c2a953f063b327e91355530fc59db79b3cb (diff)
downloadsamba-c5719336dd6fdf7184c6858afb178804fb2ac435.tar.gz
samba-c5719336dd6fdf7184c6858afb178804fb2ac435.tar.bz2
samba-c5719336dd6fdf7184c6858afb178804fb2ac435.zip
r24395: Add check if talloc_strdup worked.
(This used to be commit 754b9ff696cda6b2df4d569c9a910ab0ca49e13b)
-rw-r--r--source4/winbind/wb_cmd_getpwuid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/winbind/wb_cmd_getpwuid.c b/source4/winbind/wb_cmd_getpwuid.c
index 41379c7d65..1a59b5486e 100644
--- a/source4/winbind/wb_cmd_getpwuid.c
+++ b/source4/winbind/wb_cmd_getpwuid.c
@@ -117,6 +117,7 @@ static void cmd_getpwuid_recv_domain(struct composite_context *ctx)
/* We need the workgroup later, so copy it */
state->workgroup = talloc_strdup(state,
state->domain->libnet_ctx->samr.name);
+ if (composite_nomem(state->workgroup, state->ctx)) return;
ctx = libnet_UserInfo_send(state->domain->libnet_ctx, state, user_info,
NULL);