diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-05-26 11:18:35 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-05-26 11:18:35 +0000 |
commit | c894a3fc6e8cd16328faf860e04979004e2d6820 (patch) | |
tree | 81ad51739933887f1d4ccbcfc3d7793d9ff88622 /lib | |
parent | 9cfeb986a2a26f0f7f8c9a1030b29e2ded7188c5 (diff) | |
download | gnutls-c894a3fc6e8cd16328faf860e04979004e2d6820.tar.gz |
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_state.c | 7 | ||||
-rw-r--r-- | lib/libgnutls.m4 | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c index fe51a46961..b77da784c9 100644 --- a/lib/gnutls_state.c +++ b/lib/gnutls_state.c @@ -374,7 +374,12 @@ void gnutls_deinit(gnutls_session session) } gnutls_free( session->internals.srp_username); - gnutls_free( session->internals.srp_password); + + if (session->internals.srp_password) { + memset( session->internals.srp_password, 0, + strlen(session->internals.srp_password)); + gnutls_free( session->internals.srp_password); + } memset( session, 0, sizeof(struct gnutls_session_int)); gnutls_free(session); diff --git a/lib/libgnutls.m4 b/lib/libgnutls.m4 index 684322d8fa..99f0aa27e6 100644 --- a/lib/libgnutls.m4 +++ b/lib/libgnutls.m4 @@ -9,7 +9,7 @@ dnl $id$ dnl AM_PATH_LIBGNUTLS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) dnl Test for libgnutls, and define LIBGNUTLS_CFLAGS and LIBGNUTLS_LIBS dnl -AC_DEFUN(AM_PATH_LIBGNUTLS, +AC_DEFUN([AM_PATH_LIBGNUTLS], [dnl dnl Get the cflags and libraries from the libgnutls-config script dnl |