summaryrefslogtreecommitdiff
path: root/source/winbind
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
commit754b9ff696cda6b2df4d569c9a910ab0ca49e13b (patch)
tree6b7037c537d94508db2c88ffe42efbc131a685dc /source/winbind
parent1abd8edb57d1a537115de020921ffe4f878d9f29 (diff)
downloadsamba-754b9ff696cda6b2df4d569c9a910ab0ca49e13b.tar.gz
r24395: Add check if talloc_strdup worked.
Diffstat (limited to 'source/winbind')
-rw-r--r--source/winbind/wb_cmd_getpwuid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/winbind/wb_cmd_getpwuid.c b/source/winbind/wb_cmd_getpwuid.c
index 41379c7d651..1a59b5486ed 100644
--- a/source/winbind/wb_cmd_getpwuid.c
+++ b/source/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);