summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 6beff70c9b..ea029d4df7 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1560,10 +1560,15 @@ try and browse available connections on a host
****************************************************************************/
static BOOL browse_host(BOOL sort)
{
+ int ret;
+
printf("\n\tSharename Type Comment\n");
printf("\t--------- ---- -------\n");
- return cli_RNetShareEnum(cli, browse_fn);
+ if((ret = cli_RNetShareEnum(cli, browse_fn)) == -1)
+ printf("Error returning browse list: %s\n", cli_errstr(cli));
+
+ return (ret != -1);
}
/****************************************************************************