Blame SOURCES/rsyslog-8.2102.0-nsd_ossl-memory-leak.patch
|
|
ba8166 |
diff --git a/runtime/nsd_ossl.c b/runtime/nsd_ossl.c
|
|
|
ba8166 |
index 79347916e4..69ec57af09 100644
|
|
|
ba8166 |
--- a/runtime/nsd_ossl.c
|
|
|
ba8166 |
+++ b/runtime/nsd_ossl.c
|
|
|
ba8166 |
@@ -1821,11 +1821,8 @@ BIO_set_nbio( conn, 1 );
|
|
|
ba8166 |
}
|
|
|
ba8166 |
|
|
|
ba8166 |
|
|
|
ba8166 |
-/* Empty wrapper for GNUTLS helper function
|
|
|
ba8166 |
- * TODO: implement a similar capability
|
|
|
ba8166 |
- */
|
|
|
ba8166 |
static rsRetVal
|
|
|
ba8166 |
-SetGnutlsPriorityString(__attribute__((unused)) nsd_t *pNsd, __attribute__((unused)) uchar *gnutlsPriorityString)
|
|
|
ba8166 |
+SetGnutlsPriorityString(nsd_t *const pNsd, uchar *const gnutlsPriorityString)
|
|
|
ba8166 |
{
|
|
|
ba8166 |
DEFiRet;
|
|
|
ba8166 |
nsd_ossl_t* pThis = (nsd_ossl_t*) pNsd;
|
|
|
ba8166 |
@@ -1905,6 +1902,7 @@ SetGnutlsPriorityString(__attribute__((unused)) nsd_t *pNsd, __attribute__((unus
|
|
|
ba8166 |
pThis->gnutlsPriorityString);
|
|
|
ba8166 |
osslLastSSLErrorMsg(0, NULL, LOG_ERR, "SetGnutlsPriorityString");
|
|
|
ba8166 |
}
|
|
|
ba8166 |
+ SSL_CONF_CTX_free(cctx);
|
|
|
ba8166 |
}
|
|
|
ba8166 |
#else
|
|
|
ba8166 |
dbgprintf("gnutlsPriorityString: set to '%s'\n", gnutlsPriorityString);
|