diff options
Diffstat (limited to 'source3/rpcclient/cmd_srvsvc.c')
-rw-r--r-- | source3/rpcclient/cmd_srvsvc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c index 477e68561c..c433908e20 100644 --- a/source3/rpcclient/cmd_srvsvc.c +++ b/source3/rpcclient/cmd_srvsvc.c @@ -258,6 +258,13 @@ void cmd_srv_enum_sess(struct client_info *info) res = res ? do_srv_net_srv_sess_enum(smb_cli, nt_pipe_fnum, dest_srv, NULL, NULL, info_level, &ctr, 0x1000, &hnd) : False; + if (res) + { + display_srv_sess_info_ctr(out_hnd, ACTION_HEADER , &ctr); + display_srv_sess_info_ctr(out_hnd, ACTION_ENUMERATE, &ctr); + display_srv_sess_info_ctr(out_hnd, ACTION_FOOTER , &ctr); + } + /* close the session */ cli_nt_session_close(smb_cli, nt_pipe_fnum); |