diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-14 08:42:51 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-15 09:32:52 +0200 |
commit | 63cb6ef6f5bde6d443de88b5a938a9b9aaa5e860 (patch) | |
tree | bbf268e0f48852ded14bc19829628b24967ee8fe | |
parent | d9aab739b19452cbf483de4c9f496aeb2d0307f1 (diff) | |
download | gnutls-63cb6ef6f5bde6d443de88b5a938a9b9aaa5e860.tar.gz |
_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 <nmav@redhat.com>
-rw-r--r-- | lib/auth/srp_kx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |