summaryrefslogtreecommitdiffstats
path: root/source/rpc_server/srv_samr_util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-05 14:52:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:56 -0500
commit8f67efd582655e03fea746eee499f3cab6cbdb4d (patch)
tree645153d123753e05968f3a267dad187805b1e0cb /source/rpc_server/srv_samr_util.c
parent5ebdf02ba166df69e210e6f70c01a44e6205ecc1 (diff)
downloadsamba-8f67efd582655e03fea746eee499f3cab6cbdb4d.tar.gz
samba-8f67efd582655e03fea746eee499f3cab6cbdb4d.tar.xz
samba-8f67efd582655e03fea746eee499f3cab6cbdb4d.zip
r20546: Fix some IBM checker errors
Diffstat (limited to 'source/rpc_server/srv_samr_util.c')
-rw-r--r--source/rpc_server/srv_samr_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/rpc_server/srv_samr_util.c b/source/rpc_server/srv_samr_util.c
index 242d44c6e83..8acc1785ef6 100644
--- a/source/rpc_server/srv_samr_util.c
+++ b/source/rpc_server/srv_samr_util.c
@@ -52,6 +52,7 @@ void copy_id20_to_sam_passwd(struct samu *to, SAM_USER_INFO_20 *from)
old_string = pdb_get_munged_dial(to);
mung.length = from->hdr_munged_dial.uni_str_len;
mung.data = (uint8 *) from->uni_munged_dial.buffer;
+ mung.free = NULL;
new_string = (mung.length == 0) ?
NULL : base64_encode_data_blob(mung);
DEBUG(10,("INFO_20 UNI_MUNGED_DIAL: %s -> %s\n",old_string, new_string));
@@ -194,6 +195,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
old_string = pdb_get_munged_dial(to);
mung.length = from->hdr_munged_dial.uni_str_len;
mung.data = (uint8 *) from->uni_munged_dial.buffer;
+ mung.free = NULL;
newstr = (mung.length == 0) ?
NULL : base64_encode_data_blob(mung);
DEBUG(10,("INFO_21 UNI_MUNGED_DIAL: %s -> %s\n",old_string, newstr));
@@ -417,6 +419,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
old_string = pdb_get_munged_dial(to);
mung.length = from->hdr_munged_dial.uni_str_len;
mung.data = (uint8 *) from->uni_munged_dial.buffer;
+ mung.free = NULL;
newstr = (mung.length == 0) ?
NULL : base64_encode_data_blob(mung);
DEBUG(10,("INFO_23 UNI_MUNGED_DIAL: %s -> %s\n",old_string, newstr));
@@ -628,6 +631,7 @@ void copy_id25_to_sam_passwd(struct samu *to, SAM_USER_INFO_25 *from)
old_string = pdb_get_munged_dial(to);
mung.length = from->hdr_munged_dial.uni_str_len;
mung.data = (uint8 *) from->uni_munged_dial.buffer;
+ mung.free = NULL;
newstr = (mung.length == 0) ?
NULL : base64_encode_data_blob(mung);
DEBUG(10,("INFO_25 UNI_MUNGED_DIAL: %s -> %s\n",old_string, newstr));