summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-28 08:41:50 +0000
committerTim Potter <tpot@samba.org>2002-05-28 08:41:50 +0000
commit78b4de02bbffdc92e7ac6b99f9550016b9a87be5 (patch)
tree79e75d626b464cf2bf2b6f55ca320cbcd34f1b36
parent65a31d8dd853b1484c0b305af8154a34b8721b61 (diff)
downloadsamba-78b4de02bbffdc92e7ac6b99f9550016b9a87be5.tar.gz
samba-78b4de02bbffdc92e7ac6b99f9550016b9a87be5.tar.bz2
samba-78b4de02bbffdc92e7ac6b99f9550016b9a87be5.zip
When marshalling a netshareenum request the share ctr has to be initialised
to an empty value instead of a null pointer otherwise the server service crashes on NT. (This used to be commit c7214baa0540a0c7d23d3023b2c2ff4cde0f9f7f)
-rw-r--r--source3/rpc_parse/parse_srv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index 9c9d5f1e9c..f469b47923 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -658,7 +658,9 @@ void init_srv_q_net_share_enum(SRV_Q_NET_SHARE_ENUM *q_n,
init_buf_unistr2(&q_n->uni_srv_name, &q_n->ptr_srv_name, srv_name);
q_n->ctr.info_level = q_n->ctr.switch_value = info_level;
- q_n->ctr.ptr_share_info = 0;
+ q_n->ctr.ptr_share_info = 1;
+ q_n->ctr.num_entries = 0;
+ q_n->ctr.ptr_entries = 0;
q_n->preferred_len = preferred_len;
memcpy(&q_n->enum_hnd, hnd, sizeof(*hnd));