summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-05 04:25:21 +0000
committerTim Potter <tpot@samba.org>2002-09-05 04:25:21 +0000
commit7b9439363ed4ca85677e7ca4e84ac67f71182842 (patch)
tree3ae31fbe0a04223cd26c2410c1bc7b1665db97af
parent481c0db0acf6bf305a630aae9751a6d9655e0cda (diff)
downloadsamba-7b9439363ed4ca85677e7ca4e84ac67f71182842.tar.gz
samba-7b9439363ed4ca85677e7ca4e84ac67f71182842.tar.bz2
samba-7b9439363ed4ca85677e7ca4e84ac67f71182842.zip
A netshareenum reply always contains an enum_hnd. win2k returns zero
total entries on an error whereas nt4 must send uninitialised data so we didn't catch this one before. (This used to be commit 88653130bc1e380b7d8dc6c62492f3bbc6f1c707)
-rw-r--r--source3/rpc_parse/parse_srv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index 531267c308..672db36a28 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -1119,10 +1119,8 @@ BOOL srv_io_r_net_share_enum(char *desc, SRV_R_NET_SHARE_ENUM *r_n, prs_struct *
if(!prs_uint32("total_entries", ps, depth, &r_n->total_entries))
return False;
- if(r_n->total_entries != 0) {
- if(!smb_io_enum_hnd("enum_hnd", &r_n->enum_hnd, ps, depth))
- return False;
- }
+ if(!smb_io_enum_hnd("enum_hnd", &r_n->enum_hnd, ps, depth))
+ return False;
if(!prs_werror("status", ps, depth, &r_n->status))
return False;