svn commit: samba r24595 - in branches: SAMBA_3_2/source/smbd SAMBA_3_2_0/source/smbd

vlendec at samba.org vlendec at samba.org
Tue Aug 21 12:58:11 GMT 2007


Author: vlendec
Date: 2007-08-21 12:58:10 +0000 (Tue, 21 Aug 2007)
New Revision: 24595

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

Log:
Fix Coverity ID 393

In this error case we would have used "start" not having it initialized

Modified:
   branches/SAMBA_3_2/source/smbd/filename.c
   branches/SAMBA_3_2_0/source/smbd/filename.c


Changeset:
Modified: branches/SAMBA_3_2/source/smbd/filename.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/filename.c	2007-08-21 12:20:33 UTC (rev 24594)
+++ branches/SAMBA_3_2/source/smbd/filename.c	2007-08-21 12:58:10 UTC (rev 24595)
@@ -155,8 +155,7 @@
 
 	if (!*orig_path) {
 		if (!(name = SMB_STRDUP("."))) {
-			result = NT_STATUS_NO_MEMORY;
-			goto fail;
+			return NT_STATUS_NO_MEMORY;
 		}
 		if (SMB_VFS_STAT(conn,name,&st) == 0) {
 			*pst = st;

Modified: branches/SAMBA_3_2_0/source/smbd/filename.c
===================================================================
--- branches/SAMBA_3_2_0/source/smbd/filename.c	2007-08-21 12:20:33 UTC (rev 24594)
+++ branches/SAMBA_3_2_0/source/smbd/filename.c	2007-08-21 12:58:10 UTC (rev 24595)
@@ -155,8 +155,7 @@
 
 	if (!*orig_path) {
 		if (!(name = SMB_STRDUP("."))) {
-			result = NT_STATUS_NO_MEMORY;
-			goto fail;
+			return NT_STATUS_NO_MEMORY;
 		}
 		if (SMB_VFS_STAT(conn,name,&st) == 0) {
 			*pst = st;



More information about the samba-cvs mailing list