From 63cb6ef6f5bde6d443de88b5a938a9b9aaa5e860 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 14 Aug 2017 08:42:51 +0200 Subject: _gnutls_proc_srp_client_kx: use same type in subtracted values This ensures that there are no issues with subtracting those values. Note that the second is read from an uint16_t and thus it is always positive regardless its type. Relates #244 Signed-off-by: Nikos Mavrogiannopoulos --- lib/auth/srp_kx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth/srp_kx.c b/lib/auth/srp_kx.c index ec13894d19..3a9106ff6b 100644 --- a/lib/auth/srp_kx.c +++ b/lib/auth/srp_kx.c @@ -345,7 +345,7 @@ int _gnutls_proc_srp_client_kx(gnutls_session_t session, uint8_t * data, size_t _data_size) { - size_t _n_A; + ssize_t _n_A; ssize_t data_size = _data_size; int ret; -- cgit v1.2.1