diff options
| author | Sam Varshavchik | 2018-09-26 08:12:19 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2018-09-26 08:12:19 -0400 |
| commit | 9e7f4cb275f04c59dd187b4a39b00832d2b2817e (patch) | |
| tree | 02802ac8d874abacc2486042aad71d4e9ec056a7 /tcpd/libcouriergnutls.c | |
| parent | ec5264047dfaf66c61cd0f4c9b8dd40463693722 (diff) | |
| download | courier-libs-9e7f4cb275f04c59dd187b4a39b00832d2b2817e.tar.bz2 | |
Additional fixes.
Diffstat (limited to 'tcpd/libcouriergnutls.c')
| -rw-r--r-- | tcpd/libcouriergnutls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tcpd/libcouriergnutls.c b/tcpd/libcouriergnutls.c index da57d1f..7f65b04 100644 --- a/tcpd/libcouriergnutls.c +++ b/tcpd/libcouriergnutls.c @@ -1151,8 +1151,6 @@ static int get_client_cert(gnutls_session_t session, { rc=set_cert(ssl, session, st, certfilename, keyfilename); free(certfilename); - if (keyfilename) - free(keyfilename); } else { @@ -1161,6 +1159,10 @@ static int get_client_cert(gnutls_session_t session, if (rc > 0) rc=0; } + + if (keyfilename) + free(keyfilename); + return rc; } |
