moved more stuff from rqout to rq
[radsecproxy.git] / tcp.c
diff --git a/tcp.c b/tcp.c
index b3e41df..d59efa5 100644 (file)
--- a/tcp.c
+++ b/tcp.c
@@ -249,11 +249,9 @@ void tcpserverrd(struct client *client) {
        rq->buf = buf;
        rq->from = client;
        if (!radsrv(rq)) {
-           freerq(rq);
            debug(DBG_ERR, "tcpserverrd: message authentication/validation failed, closing connection from %s", client->conf->host);
            break;
        }
-       freerq(rq);
     }
 
     /* stop writer by setting s to -1 and give signal in case waiting for data */