mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-27 19:23:40 +00:00
Ignore empty payload
This commit is contained in:
@@ -586,6 +586,9 @@ aead_chunk_decrypt(cipher_ctx_t *ctx, uint8_t *p, uint8_t *c, uint8_t *n,
|
||||
mlen = ntohs(*(uint16_t *)len_buf);
|
||||
mlen = mlen & CHUNK_SIZE_MASK;
|
||||
|
||||
if (mlen == 0)
|
||||
return CRYPTO_ERROR;
|
||||
|
||||
size_t chunk_len = 2 * tlen + CHUNK_SIZE_LEN + mlen;
|
||||
|
||||
if (*clen < chunk_len)
|
||||
|
||||
Reference in New Issue
Block a user