summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-07 12:38:23 +0100
committerGünther Deschner <gd@samba.org>2009-01-08 11:19:33 +0100
commit5581637d2269f99075071ec5aade59b492bb9740 (patch)
tree17063f831363fc3c74a1080d3fefc265b01601fa /source3
parent385316a09a6dbb790e5f7cb012614acd42bbbb00 (diff)
downloadsamba-5581637d2269f99075071ec5aade59b492bb9740.tar.gz
samba-5581637d2269f99075071ec5aade59b492bb9740.tar.bz2
samba-5581637d2269f99075071ec5aade59b492bb9740.zip
s3-svcctl: fix return code for _svcctl_QueryServiceStatusEx.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c5
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;
}