diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-01-17 13:05:43 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-01-17 13:05:43 +0000 |
commit | 38ff9cfddb2c8a591802a95b55a68a6a0993d809 (patch) | |
tree | beaf76d7630b16bd4d580d3ff33e35b276525a50 /src | |
parent | 504e66b8d25a354109f9e26ad9b7884ab7c8a6e1 (diff) | |
download | gnutls-38ff9cfddb2c8a591802a95b55a68a6a0993d809.tar.gz |
fixed bugs reported (with patches) by
Marc Huber and Guillaume Morin.
Diffstat (limited to 'src')
-rw-r--r-- | src/crypt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crypt.c b/src/crypt.c index ee42fbc4ec..7446a8476c 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -380,7 +380,7 @@ int crypt_int(char *username, char *passwd, int crypt, int salt, if (put==0) { fprintf(fd, "%s:%s:%u\n", username, cr, iindex); } - free(cr); + gnutls_free(cr); fclose(fd); fclose(fd2); @@ -422,7 +422,6 @@ static int read_conf_values(MPI * g, MPI * n, char *str, int str_size) tmp_size = _gnutls_sbase64_decode(p, len, &tmp); if (tmp_size < 0) { - gnutls_free(tmp); return -1; } if (gcry_mpi_scan(g, GCRYMPI_FMT_USG, tmp, &tmp_size)) { |