Initialize buffer for decryption - just in case
This commit is contained in:
parent
3e9638b0cb
commit
90c1341626
1 changed files with 1 additions and 0 deletions
|
@ -482,6 +482,7 @@ bool sptps_verify_datagram(sptps_t *s, const void *data, size_t len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
char buffer[len];
|
char buffer[len];
|
||||||
|
memset(buffer, 0x0, len);
|
||||||
size_t outlen;
|
size_t outlen;
|
||||||
return chacha_poly1305_decrypt(s->incipher, seqno, data + 4, len - 4, buffer, &outlen);
|
return chacha_poly1305_decrypt(s->incipher, seqno, data + 4, len - 4, buffer, &outlen);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue