summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_srv.c
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-11-29 14:39:06 +0000
committerJean-François Micouleau <jfm@samba.org>2000-11-29 14:39:06 +0000
commit97e3b293569cebd91b5f2b37a7578e2e2779ceb0 (patch)
tree16a6da594e59027a1782e1a06ccd8fab3255c4d2 /source/rpc_parse/parse_srv.c
parent6cb727c033822e3e5ff3edc532457df8258beefd (diff)
downloadsamba-97e3b293569cebd91b5f2b37a7578e2e2779ceb0.tar.gz
samba-97e3b293569cebd91b5f2b37a7578e2e2779ceb0.tar.xz
samba-97e3b293569cebd91b5f2b37a7578e2e2779ceb0.zip
alignment issues.
I hate that job ... J.F.
Diffstat (limited to 'source/rpc_parse/parse_srv.c')
-rw-r--r--source/rpc_parse/parse_srv.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_srv.c b/source/rpc_parse/parse_srv.c
index 6eeae80cfc2..be7401ffc5f 100644
--- a/source/rpc_parse/parse_srv.c
+++ b/source/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;