summaryrefslogtreecommitdiff
path: root/source3/srvparse.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/srvparse.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/srvparse.c')
-rw-r--r--source3/srvparse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/srvparse.c b/source3/srvparse.c
index a94efff138..8138285caf 100644
--- a/source3/srvparse.c
+++ b/source3/srvparse.c
@@ -85,6 +85,8 @@ char* srv_io_share_1_ctr(BOOL io, SHARE_INFO_1_CTR *ctr, char *q, char *base, in
num_entries = MAX_SHARE_ENTRIES; /* report this! */
}
+ DBG_RW_IVAL("num_entries_read2", depth, base, io, q, ctr->num_entries_read2); q += 4;
+
for (i = 0; i < num_entries; i++)
{
q = srv_io_share_info1(io, &(ctr->info_1[i]), q, base, align, depth);
@@ -95,7 +97,9 @@ char* srv_io_share_1_ctr(BOOL io, SHARE_INFO_1_CTR *ctr, char *q, char *base, in
q = srv_io_share_info1_str(io, &(ctr->info_1_str[i]), q, base, align, depth);
}
- DBG_RW_IVAL("num_entries_read2", depth, base, io, q, ctr->num_entries_read); q += 4;
+ q = align_offset(q, base, align);
+ DBG_RW_IVAL("num_entries_read3", depth, base, io, q, ctr->num_entries_read3); q += 4;
+ DBG_RW_IVAL("padding ", depth, base, io, q, ctr->padding); q += 4;
}
return q;