summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_svcctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_client/cli_svcctl.c')
-rw-r--r--source3/rpc_client/cli_svcctl.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_svcctl.c b/source3/rpc_client/cli_svcctl.c
index 5e8a3952a5..ed3ddaf9d3 100644
--- a/source3/rpc_client/cli_svcctl.c
+++ b/source3/rpc_client/cli_svcctl.c
@@ -200,10 +200,13 @@ BOOL svc_enum_svcs(struct cli_state *cli, uint16 fnum,
if (p && r_o.dos_status != 0)
{
fstring errmsg;
- smb_safe_err_msg(ERRDOS, r_o.dos_status,
- errmsg, sizeof(errmsg));
- /* report error code */
- DEBUG(0,("SVC_ENUM_SVCS_STATUS: %s\n", errmsg));
+
+ if (r_o.dos_status != ERRmoredata) {
+ smb_safe_err_msg(ERRDOS, r_o.dos_status,
+ errmsg, sizeof(errmsg));
+ /* report error code */
+ DEBUG(0,("SVC_ENUM_SVCS_STATUS: %s\n", errmsg));
+ }
p = r_o.dos_status == ERRmoredata;
}