summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-14 08:42:51 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-15 09:33:34 +0200
commit86e6f94b508f635ae054fb83a625ac9b8911de90 (patch)
tree577993450456c7ff5b8431c17c322d3dfa801ebe
parentb4e1c5296c171e24dce972d47f3953a7250662b8 (diff)
downloadgnutls-86e6f94b508f635ae054fb83a625ac9b8911de90.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/auth/srp.c b/lib/auth/srp.c
index 8b31383341..2d358960e4 100644
--- a/lib/auth/srp.c
+++ b/lib/auth/srp.c
@@ -346,7 +346,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;