svn commit: samba r24395 - in branches/SAMBA_4_0/source/winbind: .

kai at samba.org kai at samba.org
Tue Aug 14 07:15:17 GMT 2007


Author: kai
Date: 2007-08-14 07:15:16 +0000 (Tue, 14 Aug 2007)
New Revision: 24395

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24395

Log:
Add check if talloc_strdup worked.

Modified:
   branches/SAMBA_4_0/source/winbind/wb_cmd_getpwuid.c


Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_cmd_getpwuid.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_cmd_getpwuid.c	2007-08-14 06:52:30 UTC (rev 24394)
+++ branches/SAMBA_4_0/source/winbind/wb_cmd_getpwuid.c	2007-08-14 07:15:16 UTC (rev 24395)
@@ -117,6 +117,7 @@
 	/* 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);



More information about the samba-cvs mailing list