summaryrefslogtreecommitdiff
path: root/source3/pipesrvsvc.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-19 17:54:13 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-19 17:54:13 +0000
commit0c1d45dfa4d2bd780a4d5c8f2b804018c8b4939b (patch)
tree48e7d3e09993c6833478346955c605c5e0a73c23 /source3/pipesrvsvc.c
parent7aa5495c18f21eaa1397e8b0751b71810ccf38b7 (diff)
downloadsamba-0c1d45dfa4d2bd780a4d5c8f2b804018c8b4939b.tar.gz
samba-0c1d45dfa4d2bd780a4d5c8f2b804018c8b4939b.tar.bz2
samba-0c1d45dfa4d2bd780a4d5c8f2b804018c8b4939b.zip
debugging the srvsvc Net Share Enum. some padding issues; some string length
issues. it works! (This used to be commit 80523a3e83191c9e0b930fc71bd502a94a6f1b19)
Diffstat (limited to 'source3/pipesrvsvc.c')
-rw-r--r--source3/pipesrvsvc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/pipesrvsvc.c b/source3/pipesrvsvc.c
index 10c8d97e75..28a304ef4a 100644
--- a/source3/pipesrvsvc.c
+++ b/source3/pipesrvsvc.c
@@ -37,8 +37,8 @@ static void make_srv_share_info1_str(SH_INFO_1_STR *sh1, char *net_name, char *r
DEBUG(5,("make_srv_share_info1_str: %s %s\n", net_name, remark));
- make_unistr2(&(sh1->uni_netname), net_name, strlen(net_name));
- make_unistr2(&(sh1->uni_remark ), remark , strlen(remark ));
+ make_unistr2(&(sh1->uni_netname), net_name, strlen(net_name)+1);
+ make_unistr2(&(sh1->uni_remark ), remark , strlen(remark )+1);
}
/*******************************************************************
@@ -103,8 +103,10 @@ static void make_srv_share_1_ctr(SHARE_INFO_1_CTR *ctr)
}
ctr->num_entries_read = num_entries;
- ctr->ptr_share_info = num_entries > 0 ? 1 : 0;
+ ctr->ptr_share_info = num_entries > 0 ? 1 : 0;
ctr->num_entries_read2 = num_entries;
+ ctr->num_entries_read3 = num_entries;
+ ctr->padding = 0;
}
/*******************************************************************