mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-08 06:28:26 +01:00
Fix identity indexing
This commit is contained in:
parent
b321ba8fab
commit
50431ed511
@ -804,7 +804,7 @@ static unsigned int client_psk_cb(SSL *ssl, const char *hint, char *identity, un
|
||||
psk_len = 0;
|
||||
else {
|
||||
memcpy(identity, ret_identity, identity_len);
|
||||
identity[ret_identity] = 0;
|
||||
identity[identity_len] = 0;
|
||||
memcpy(psk, ret_psk, psk_len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user