summaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-17 10:15:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-17 10:15:31 +0100
commit30fc1cc7dbab5ec1fba3105f3563b86497916b2e (patch)
treed422a2b68e58416f9a9ffce68ed63ab923b89145 /tests/server
parentf25112074d8c501de39f5174b534501b4ce3781f (diff)
downloadcurl-30fc1cc7dbab5ec1fba3105f3563b86497916b2e.tar.gz
tests/mqttd: extract the client id from the correct offsetbagder/mqttd
Closes #6334
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/mqttd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/mqttd.c b/tests/server/mqttd.c
index 1f4344ac0..aec4a099b 100644
--- a/tests/server/mqttd.c
+++ b/tests/server/mqttd.c
@@ -537,7 +537,7 @@ static curl_socket_t mqttit(curl_socket_t fd)
logmsg("Too large client id");
goto end;
}
- memcpy(client_id, &buffer[14], payload_len);
+ memcpy(client_id, &buffer[12], payload_len);
client_id[payload_len] = 0;
logmsg("MQTT client connect accepted: %s", client_id);