Skip to content

Commit e168714

Browse files
authored
Merge pull request #9236 from douzzer/20250923-wc_XChaCha20Poly1305_crypt_oneshot-empty-message
20250923-wc_XChaCha20Poly1305_crypt_oneshot-empty-message
2 parents ae76092 + 4af6eb4 commit e168714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/chacha20_poly1305.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static WC_INLINE int wc_XChaCha20Poly1305_crypt_oneshot(
401401
goto out;
402402
}
403403

404-
if (dst_len <= 0 || (long int)dst_space < dst_len) {
404+
if (dst_len < 0 || (long int)dst_space < dst_len) {
405405
ret = BUFFER_E;
406406
goto out;
407407
}

0 commit comments

Comments
 (0)