diff options
author | Günther Deschner <gd@samba.org> | 2009-06-07 00:47:03 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-06-07 00:56:04 +0200 |
commit | 93e797064753e815a3fe5e32fdea167b395b58d3 (patch) | |
tree | 9b33a48ca8a01a6b46d6845afcb4918ba0313d33 | |
parent | c3f1f6cac9fc92f373ec376824014c09c6760a0d (diff) | |
download | samba-93e797064753e815a3fe5e32fdea167b395b58d3.tar.gz samba-93e797064753e815a3fe5e32fdea167b395b58d3.tar.bz2 samba-93e797064753e815a3fe5e32fdea167b395b58d3.zip |
s3-samr: fix _QueryDisplayInformation r->out.returned_size.
*r->out.returned_size needs to be 0 if nothing was enumerated.
Found by RPC-SAMR torture test.
Guenther
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 6e990a319f..e2f65ae322 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1603,7 +1603,7 @@ NTSTATUS _samr_QueryDisplayInfo(pipes_struct *p, DEBUG(5, ("_samr_QueryDisplayInfo: %d\n", __LINE__)); *r->out.total_size = num_account * struct_size; - *r->out.returned_size = temp_size; + *r->out.returned_size = num_account ? temp_size : 0; return status; } |