mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -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");
|
logmsg("Too large client id");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
memcpy(client_id, &buffer[14], payload_len);
|
memcpy(client_id, &buffer[12], payload_len);
|
||||||
client_id[payload_len] = 0;
|
client_id[payload_len] = 0;
|
||||||
|
|
||||||
logmsg("MQTT client connect accepted: %s", client_id);
|
logmsg("MQTT client connect accepted: %s", client_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user