mirror of
https://github.com/curl/curl.git
synced 2026-05-30 07:57:27 +03:00
tests/mqttd: extract the client id from the correct offset
Closes #6334
This commit is contained in:
parent
f25112074d
commit
30fc1cc7db
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue