From a47da316793cf84b3b4bd82f09985460b8d0c10f Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Fri, 10 May 2019 07:25:49 +0100 Subject: [PATCH] Update changelog, improve warning message from last commit. --- ChangeLog.txt | 3 +++ client/client_shared.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 6532ffa8..1910d056 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -4,6 +4,9 @@ Broker: - Fix detection of incoming v3.1/v3.1.1 bridges. Closes #1263. +Clients: +- Fix -L url parsing when `/topic` part is missing. + 1.6.2 - 20190430 ================ diff --git a/client/client_shared.c b/client/client_shared.c index b1cbd7bb..94510154 100644 --- a/client/client_shared.c +++ b/client/client_shared.c @@ -663,7 +663,7 @@ int client_config_line_proc(struct mosq_config *cfg, int pub_or_sub, int argc, c } topic = strchr(url, '/'); if(!topic){ - fprintf(stderr, "Error: invalid URL for -L argument specified.\n\n"); + fprintf(stderr, "Error: Invalid URL for -L argument specified - topic missing.\n"); return 1; } *topic++ = 0;