mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
tests/mqttd: extract the client id from the correct offset
Closes #6334
This commit is contained in:
parent
f25112074d
commit
30fc1cc7db
@ -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…
Reference in New Issue
Block a user