summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-07-30 04:32:29 +0000
committerTim Potter <tpot@samba.org>2002-07-30 04:32:29 +0000
commita5a0ff8bd7ee4a3586647d14fd750ec6df73efa8 (patch)
treedc8d75fb718fe9235fbe35540e9db8a2b3cad2cf /source/rpcclient
parent84c1a5b0f046fa0375563120da117a8e76fb5b8c (diff)
downloadsamba-a5a0ff8bd7ee4a3586647d14fd750ec6df73efa8.tar.gz
samba-a5a0ff8bd7ee4a3586647d14fd750ec6df73efa8.tar.xz
samba-a5a0ff8bd7ee4a3586647d14fd750ec6df73efa8.zip
Some crash fixes for netshareenum returning zero shares.
Diffstat (limited to 'source/rpcclient')
-rw-r--r--source/rpcclient/cmd_srvsvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpcclient/cmd_srvsvc.c b/source/rpcclient/cmd_srvsvc.c
index 43bfb250489..8d416f8db01 100644
--- a/source/rpcclient/cmd_srvsvc.c
+++ b/source/rpcclient/cmd_srvsvc.c
@@ -270,7 +270,7 @@ static NTSTATUS cmd_srvsvc_net_share_enum(struct cli_state *cli,
result = cli_srvsvc_net_share_enum(
cli, mem_ctx, info_level, &ctr, preferred_len, &hnd);
- if (!W_ERROR_IS_OK(result))
+ if (!W_ERROR_IS_OK(result) || !ctr.num_entries)
goto done;
/* Display results */