diff options
-rw-r--r-- | source3/rpc_server/srv_svcctl_nt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c index cd98a0bfcc..2e50d312d6 100644 --- a/source3/rpc_server/srv_svcctl_nt.c +++ b/source3/rpc_server/srv_svcctl_nt.c @@ -609,8 +609,9 @@ WERROR _svcctl_QueryServiceStatusEx(pipes_struct *p, buffer_size += buffer_size % 4; *r->out.bytes_needed = (buffer_size > r->in.buf_size) ? buffer_size : r->in.buf_size; - if (buffer_size > r->in.buf_size ) - return WERR_MORE_DATA; + if (buffer_size > r->in.buf_size ) { + return WERR_INSUFFICIENT_BUFFER; + } return WERR_OK; } |