summaryrefslogtreecommitdiffstats
path: root/plugins/imtcp/imtcp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-21 14:56:49 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-21 14:56:49 +0000
commit9a72402b80c9b67abae090645ba30adf697f3025 (patch)
tree665d90e51d984b1a217d3a257e7ae7a039e556eb /plugins/imtcp/imtcp.c
parent4e6bba7df8170514183040897e363528c574be0e (diff)
downloadrsyslog-9a72402b80c9b67abae090645ba30adf697f3025.tar.gz
rsyslog-9a72402b80c9b67abae090645ba30adf697f3025.tar.xz
rsyslog-9a72402b80c9b67abae090645ba30adf697f3025.zip
cleaned up code (resulting in some shuffeling from syslogd.c to the "right"
module)
Diffstat (limited to 'plugins/imtcp/imtcp.c')
-rw-r--r--plugins/imtcp/imtcp.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c
index ef0912e9..8639baf3 100644
--- a/plugins/imtcp/imtcp.c
+++ b/plugins/imtcp/imtcp.c
@@ -241,6 +241,14 @@ ENDdbgPrintInstInfo
BEGINmodExit
CODESTARTmodExit
+ /* Close the TCP inet socket. */
+ if(sockTCPLstn != NULL && *sockTCPLstn) {
+ deinit_tcp_listener();
+ }
+#ifdef USE_GSSAPI
+ if(bEnableTCP & ALLOWEDMETHOD_GSS)
+ TCPSessGSSDeinit();
+#endif
ENDmodExit
@@ -251,7 +259,12 @@ ENDqueryEtryPt
static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __attribute__((unused)) *pVal)
{
- //bOmitLocalLogging = 0;
+#if defined(USE_GSSAPI)
+ if (gss_listen_service_name != NULL) {
+ free(gss_listen_service_name);
+ gss_listen_service_name = NULL;
+ }
+#endif
return RS_RET_OK;
}