diff options
author | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2007-10-07 13:26:46 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2007-10-07 13:26:46 +0300 |
commit | 38774ff46c11ed3b9aa5933279db2baf35ea3a53 (patch) | |
tree | 8520890b83319b7ebc5bd308ad1bd49b83ca86ca | |
parent | fb62e24be7bc2c40136ede7d54db2960b1a880a6 (diff) | |
download | gnutls-38774ff46c11ed3b9aa5933279db2baf35ea3a53.tar.gz |
corrected possible size issue
-rw-r--r-- | lib/auth_srp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/auth_srp.c b/lib/auth_srp.c index e30c069caa..d647020467 100644 --- a/lib/auth_srp.c +++ b/lib/auth_srp.c @@ -171,7 +171,8 @@ _gnutls_gen_srp_server_kx (gnutls_session_t session, opaque ** data) } /* copy from pwd_entry to local variables (actually in session) */ - if (_gnutls_mpi_scan_nz (&G, pwd_entry->g.data, &pwd_entry->g.size) < 0) + tmp_size = pwd_entry->g.size; + if (_gnutls_mpi_scan_nz (&G, pwd_entry->g.data, &tmp_size) < 0) { gnutls_assert (); return GNUTLS_E_MPI_SCAN_FAILED; |