svn commit: samba r2397 - in trunk/source/rpc_parse: .

jra at samba.org jra at samba.org
Fri Sep 17 21:20:41 GMT 2004


Author: jra
Date: 2004-09-17 21:20:39 +0000 (Fri, 17 Sep 2004)
New Revision: 2397

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source/rpc_parse&rev=2397&nolog=1

Log:
Fix bug found by Cornelio Bondad Jr <Corny.Bondad at hp.com>.
To correct ?\226?\128?\156net rpc vampire?\226?\128?\157 core dump.
Jeremy.

Modified:
   trunk/source/rpc_parse/parse_net.c


Changeset:
Modified: trunk/source/rpc_parse/parse_net.c
===================================================================
--- trunk/source/rpc_parse/parse_net.c	2004-09-17 21:20:32 UTC (rev 2396)
+++ trunk/source/rpc_parse/parse_net.c	2004-09-17 21:20:39 UTC (rev 2397)
@@ -2399,11 +2399,9 @@
                             info->hdr_sec_desc.buffer, ps, depth))
                 return False;
 
-	if (info->hdr_als_desc.buffer != 0) {
-		if (!smb_io_unistr2("uni_als_desc", &info->uni_als_desc,
-				    info->hdr_als_name.buffer, ps, depth))
-			return False;
-	}
+	if (!smb_io_unistr2("uni_als_desc", &info->uni_als_desc,
+			    info->hdr_als_desc.buffer, ps, depth))
+		return False;
 
 	return True;
 }



More information about the samba-cvs mailing list