From c5719336dd6fdf7184c6858afb178804fb2ac435 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 14 Aug 2007 07:15:16 +0000 Subject: r24395: Add check if talloc_strdup worked. (This used to be commit 754b9ff696cda6b2df4d569c9a910ab0ca49e13b) --- source4/winbind/wb_cmd_getpwuid.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit