1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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
This commit is contained in:
Günther Deschner 2009-06-07 00:47:03 +02:00
parent c3f1f6cac9
commit 93e7970647

View File

@ -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;
}