summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_parse/parse_srv.c')
-rw-r--r--source3/rpc_parse/parse_srv.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index 6eeae80cfc..be7401ffc5 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -54,9 +54,11 @@ static BOOL srv_io_share_info1_str(char *desc, SH_INFO_1_STR *sh1, prs_struct *p
if(!prs_align(ps))
return False;
-
if(!smb_io_unistr2("", &sh1->uni_netname, True, ps, depth))
return False;
+
+ if(!prs_align(ps))
+ return False;
if(!smb_io_unistr2("", &sh1->uni_remark, True, ps, depth))
return False;
@@ -131,13 +133,21 @@ static BOOL srv_io_share_info2_str(char *desc, SH_INFO_2_STR *sh2, prs_struct *p
if(!prs_align(ps))
return False;
-
if(!smb_io_unistr2("", &sh2->uni_netname, True, ps, depth))
return False;
+
+ if(!prs_align(ps))
+ return False;
if(!smb_io_unistr2("", &sh2->uni_remark, True, ps, depth))
return False;
+
+ if(!prs_align(ps))
+ return False;
if(!smb_io_unistr2("", &sh2->uni_path, True, ps, depth))
return False;
+
+ if(!prs_align(ps))
+ return False;
if(!smb_io_unistr2("", &sh2->uni_passwd, True, ps, depth))
return False;