summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-03 16:31:06 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-03 16:31:06 +0000
commitdc7c92e053ec4b1813b3090a1d3e7ec72d8288bb (patch)
treef4b0aba2b7de8a2349fa580163055683115994fd /lib/gnutls_handshake.c
parenta9ba3a36c6eb792d337493f9dc3f577b4d45e41e (diff)
downloadgnutls-dc7c92e053ec4b1813b3090a1d3e7ec72d8288bb.tar.gz
*** empty log message ***
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r--lib/gnutls_handshake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index efdc9a09b3..74d90419ad 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -1381,7 +1381,7 @@ static int _gnutls_copy_ciphersuites(gnutls_session session,
datalen += sizeof(uint16) + cipher_num;
- if (datalen > ret_data_size) {
+ if ((size_t)datalen > ret_data_size) {
gnutls_assert();
return GNUTLS_E_INTERNAL_ERROR;
}
@@ -1422,7 +1422,7 @@ static int _gnutls_copy_comp_methods(gnutls_session session,
datalen = pos = 0;
datalen += comp_num + 1;
- if (datalen > ret_data_size) {
+ if ((size_t)datalen > ret_data_size) {
gnutls_assert();
return GNUTLS_E_INTERNAL_ERROR;
}