diff options
author | Volker Lendecke <vl@samba.org> | 2018-02-13 14:05:15 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-02-15 20:32:24 +0100 |
commit | 0e3c2c8bc66d747e0eb8e7c1736268f7fd0b0d7a (patch) | |
tree | 732f6c755e0a53e204b7565bffcf49834f9febd9 /source3/utils/smbcontrol.c | |
parent | 9952eda7a1923971f77f3183cfa4c505386b30ee (diff) | |
download | samba-0e3c2c8bc66d747e0eb8e7c1736268f7fd0b0d7a.tar.gz |
winbind: Don't explicitly send "server_id" for ONLINESTATUS
Messaging already provides the sender id
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r-- | source3/utils/smbcontrol.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 0f6dacce20d..4b47d3bed57 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -1160,10 +1160,6 @@ static bool do_winbind_onlinestatus(struct tevent_context *ev_ctx, const struct server_id pid, const int argc, const char **argv) { - struct server_id myid; - - myid = messaging_server_id(msg_ctx); - if (argc != 1) { fprintf(stderr, "Usage: smbcontrol winbindd onlinestatus\n"); return False; @@ -1172,9 +1168,9 @@ static bool do_winbind_onlinestatus(struct tevent_context *ev_ctx, messaging_register(msg_ctx, NULL, MSG_WINBIND_ONLINESTATUS, print_pid_string_cb); - if (!send_message(msg_ctx, pid, MSG_WINBIND_ONLINESTATUS, &myid, - sizeof(myid))) + if (!send_message(msg_ctx, pid, MSG_WINBIND_ONLINESTATUS, NULL, 0)) { return False; + } wait_replies(ev_ctx, msg_ctx, procid_to_pid(&pid) == 0); |