svn commit: samba r16373 - in branches/SAMBA_3_0/source/rpc_parse: .

jra at samba.org jra at samba.org
Mon Jun 19 22:59:03 GMT 2006


Author: jra
Date: 2006-06-19 22:59:03 +0000 (Mon, 19 Jun 2006)
New Revision: 16373

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

Log:
Fix Klocwork #1071.
Jeremy

Modified:
   branches/SAMBA_3_0/source/rpc_parse/parse_samr.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_parse/parse_samr.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_parse/parse_samr.c	2006-06-19 22:58:57 UTC (rev 16372)
+++ branches/SAMBA_3_0/source/rpc_parse/parse_samr.c	2006-06-19 22:59:03 UTC (rev 16373)
@@ -6471,8 +6471,14 @@
 void init_sam_user_info20A(SAM_USER_INFO_20 *usr, struct samu *pw)
 {
 	const char *munged_dial = pdb_get_munged_dial(pw);
-	DATA_BLOB blob = base64_decode_data_blob(munged_dial);
-	
+	DATA_BLOB blob;
+
+	if (munged_dial) {
+		blob = base64_decode_data_blob(munged_dial);
+	} else {
+		blob = data_blob(NULL, 0);
+	}
+
 	init_unistr2_from_datablob(&usr->uni_munged_dial, &blob);
 	init_uni_hdr(&usr->hdr_munged_dial, &usr->uni_munged_dial);
 	data_blob_free(&blob);



More information about the samba-cvs mailing list