svn commit: samba r14962 - in branches/SAMBA_4_0/source/librpc/rpc: .

tridge at samba.org tridge at samba.org
Fri Apr 7 12:19:29 GMT 2006


Author: tridge
Date: 2006-04-07 12:19:29 +0000 (Fri, 07 Apr 2006)
New Revision: 14962

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

Log:

fixed a valgrind error

Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2006-04-07 12:11:50 UTC (rev 14961)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2006-04-07 12:19:29 UTC (rev 14962)
@@ -425,7 +425,8 @@
 	TALLOC_CTX *mem_ctx = talloc_init("floor_get_lhs_data");
 	struct ndr_pull *ndr = ndr_pull_init_blob(&epm_floor->lhs.lhs_data, mem_ctx);
 	NTSTATUS status;
-	
+	uint16_t if_version=0;
+
 	ndr->flags |= LIBNDR_FLAG_NOALIGN;
 
 	status = ndr_pull_GUID(ndr, NDR_SCALARS | NDR_BUFFERS, &syntax->uuid);
@@ -434,7 +435,8 @@
 		return status;
 	}
 
-	status = ndr_pull_uint16(ndr, NDR_SCALARS, &syntax->if_version);
+	status = ndr_pull_uint16(ndr, NDR_SCALARS, &if_version);
+	syntax->if_version = if_version;
 
 	talloc_free(mem_ctx);
 



More information about the samba-cvs mailing list