diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-11-07 12:08:03 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-11-07 12:08:03 +0000 |
commit | 5881a6e5ff317177e1a8d636c2125fb0172d0310 (patch) | |
tree | e927d0806adf4c41353665df96d5030225471e6a /lib/gnutls_session.c | |
parent | 705bed9d7ba3cb8c84682cd157b73595d1b1217b (diff) | |
download | gnutls-5881a6e5ff317177e1a8d636c2125fb0172d0310.tar.gz |
corrected memory leaks and other bugs
Diffstat (limited to 'lib/gnutls_session.c')
-rw-r--r-- | lib/gnutls_session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_session.c b/lib/gnutls_session.c index f7bce5ea8e..8474d59c3d 100644 --- a/lib/gnutls_session.c +++ b/lib/gnutls_session.c @@ -38,7 +38,7 @@ **/ int gnutls_get_current_session( GNUTLS_STATE state, opaque* session, int *session_size) { - if (*session_size < SESSION_SIZE) { + if (*session_size < SESSION_SIZE || session==NULL) { *session_size = SESSION_SIZE; session = NULL; /* return with the new session_size value */ } |