summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-09-26 16:03:54 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-09-26 16:03:54 +0000
commitc63ea11e0d2ae26d27b2bc4848d8a66730ba1ef1 (patch)
tree86737ff270adc2beb6e51de1d2ae81145b925739
parent89a2b2c1e657c2b9c20f4a0a5d8c48e89096ba3c (diff)
tiny connectionok fix
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@170 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 5673052..dfe8141 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1647,10 +1647,11 @@ void *clientwr(void *arg) {
if (server->conf->type == 'U') {
if ((server->sock = connecttoserver(server->conf->addrinfo)) < 0)
debugx(1, DBG_ERR, "clientwr: connecttoserver failed");
- server->connectionok = 1;
} else
tlsconnect(server, NULL, "new client");
+ server->connectionok = 1;
+
if (pthread_create(&clientrdth, NULL, clientrd, (void *)server))
debugx(1, DBG_ERR, "clientwr: pthread_create failed");