svn commit: samba r23343 - in branches: SAMBA_3_0/source/lib SAMBA_3_0_26/source/lib

vlendec at samba.org vlendec at samba.org
Mon Jun 4 19:45:42 GMT 2007


Author: vlendec
Date: 2007-06-04 19:45:41 +0000 (Mon, 04 Jun 2007)
New Revision: 23343

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

Log:
Fix error return

Modified:
   branches/SAMBA_3_0/source/lib/messages.c
   branches/SAMBA_3_0_26/source/lib/messages.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/messages.c
===================================================================
--- branches/SAMBA_3_0/source/lib/messages.c	2007-06-04 19:29:40 UTC (rev 23342)
+++ branches/SAMBA_3_0/source/lib/messages.c	2007-06-04 19:45:41 UTC (rev 23343)
@@ -199,8 +199,10 @@
 	status = messaging_tdb_init(ctx, ctx, &ctx->local);
 
 	if (!NT_STATUS_IS_OK(status)) {
-		DEBUG(0, ("messaging_tdb_init failed: %s\n", nt_errstr(status)));
+		DEBUG(0, ("messaging_tdb_init failed: %s\n",
+			  nt_errstr(status)));
 		TALLOC_FREE(ctx);
+		return NULL;
 	}
 
 	messaging_register(ctx, NULL, MSG_PING, ping_message);

Modified: branches/SAMBA_3_0_26/source/lib/messages.c
===================================================================
--- branches/SAMBA_3_0_26/source/lib/messages.c	2007-06-04 19:29:40 UTC (rev 23342)
+++ branches/SAMBA_3_0_26/source/lib/messages.c	2007-06-04 19:45:41 UTC (rev 23343)
@@ -199,8 +199,10 @@
 	status = messaging_tdb_init(ctx, ctx, &ctx->local);
 
 	if (!NT_STATUS_IS_OK(status)) {
-		DEBUG(0, ("messaging_tdb_init failed: %s\n", nt_errstr(status)));
+		DEBUG(0, ("messaging_tdb_init failed: %s\n",
+			  nt_errstr(status)));
 		TALLOC_FREE(ctx);
+		return NULL;
 	}
 
 	messaging_register(ctx, NULL, MSG_PING, ping_message);



More information about the samba-cvs mailing list