summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-15 15:58:51 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-15 15:58:51 +0000
commite0ed5993dac615794f5320141359a2ca4a4c419d (patch)
treee20f1e2c3f2bd8f336d9c7924b8cc489f8b4ea9b
parent736eeaf37e3e5387208f0c378198385f0d3ae79b (diff)
code for cleaning up when tls client goes away
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@37 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index de59c12..6a763fa 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1352,6 +1352,7 @@ int tlslistener(SSL_CTX *ssl_ctx) {
client = find_client('T', (struct sockaddr *)&from, NULL);
if (!client) {
printf("ignoring request, not a known TLS client\n");
+ shutdown(snew, SHUT_RDWR);
close(snew);
continue;
}