summaryrefslogtreecommitdiff
path: root/lib/ext/alpn.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-10-17 09:22:28 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-10-17 09:22:28 +0200
commit80c88c2adc5c9604738d25fd56c77c018272820a (patch)
tree3759d93e87eaafefdda2d8c7307483b26c32d657 /lib/ext/alpn.c
parent243a714bb955fecccf6fc71a302a16869be74b9b (diff)
downloadgnutls-80c88c2adc5c9604738d25fd56c77c018272820a.tar.gz
alpn: avoid warning on signed/unsigned
Diffstat (limited to 'lib/ext/alpn.c')
-rw-r--r--lib/ext/alpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/alpn.c b/lib/ext/alpn.c
index 96d3cf0dc7..699c0b5614 100644
--- a/lib/ext/alpn.c
+++ b/lib/ext/alpn.c
@@ -73,7 +73,7 @@ _gnutls_alpn_recv_params(gnutls_session_t session,
len = _gnutls_read_uint16(p);
p += 2;
- if (len > data_size)
+ if (len > (size_t)data_size)
return
gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET_LENGTH);