summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 91cf128bc4..52ca5e309a 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -193,6 +193,10 @@ static void send_message(void)
msg[l] = c;
}
+ if ((total_len > 0) && (strlen(msg) == 0)) {
+ break;
+ }
+
if (!cli_message_text(cli, msg, l, grp_id)) {
d_printf("SMBsendtxt failed (%s)\n",cli_errstr(cli));
return;