summaryrefslogtreecommitdiffstats
path: root/source/utils/smbcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/utils/smbcontrol.c')
-rw-r--r--source/utils/smbcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/utils/smbcontrol.c b/source/utils/smbcontrol.c
index a0304eb89a9..25b42a58c1e 100644
--- a/source/utils/smbcontrol.c
+++ b/source/utils/smbcontrol.c
@@ -508,13 +508,13 @@ static BOOL do_poolusage(const struct process_id pid,
return False;
}
+ message_register(MSG_POOL_USAGE, print_string_cb);
+
/* Send a message and register our interest in a reply */
if (!send_message(pid, MSG_REQ_POOL_USAGE, NULL, 0, False))
return False;
- message_register(MSG_POOL_USAGE, print_string_cb);
-
wait_replies(procid_to_pid(&pid) == 0);
/* No replies were received within the timeout period */