diff options
Diffstat (limited to 'lib/cipher.c')
-rw-r--r-- | lib/cipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cipher.c b/lib/cipher.c index 205940ffbc..a2215bc1ee 100644 --- a/lib/cipher.c +++ b/lib/cipher.c @@ -459,7 +459,7 @@ encrypt_packet_tls13(gnutls_session_t session, /* check whether padding would exceed max */ if (fdata_size > max) { - if (unlikely(max-plain->size-1 < 0)) + if (unlikely(max < (ssize_t)plain->size+1)) return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR); min_pad = max - plain->size - 1; |