diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-14 08:42:51 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-16 10:33:45 +0200 |
commit | 2c097389a1585f6723c4b486dbb027e41f5f40c6 (patch) | |
tree | 588032d7ee3ceeb83de00951365d276085f22d39 | |
parent | fc4a8e62dc089cfa0330fbcc667b5bd0c8b713e5 (diff) | |
download | gnutls-2c097389a1585f6723c4b486dbb027e41f5f40c6.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.
Resolves #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 870fb1ed8f..4475495c46 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; |