summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
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;
}