diff options
author | venaas <venaas> | 2008-09-17 08:14:21 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-09-17 08:14:21 +0000 |
commit | a710bc2df1fbb8c1e967a27dbcbf325b19014208 (patch) | |
tree | 095581287ed9dcf43f7d1390a9a8926b626d14d0 /dtls.c | |
parent | 5b259b9efe0902fb95228cf76e7d49eb2fb3c601 (diff) |
cleaning up code
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@383 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'dtls.c')
-rw-r--r-- | dtls.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -213,7 +213,7 @@ void *dtlsserverwr(void *arg) { unsigned long error; struct client *client = (struct client *)arg; struct queue *replyq; - struct reply *reply; + struct request *reply; debug(DBG_DBG, "dtlsserverwr: starting for %s", client->conf->host); replyq = client->replyq; @@ -233,17 +233,16 @@ void *dtlsserverwr(void *arg) { pthread_exit(NULL); } } - reply = (struct reply *)list_shift(replyq->entries); + reply = (struct request *)list_shift(replyq->entries); pthread_mutex_unlock(&replyq->mutex); - cnt = SSL_write(client->ssl, reply->buf, RADLEN(reply->buf)); + cnt = SSL_write(client->ssl, reply->replybuf, RADLEN(reply->replybuf)); if (cnt > 0) debug(DBG_DBG, "dtlsserverwr: sent %d bytes, Radius packet of length %d", - cnt, RADLEN(reply->buf)); + cnt, RADLEN(reply->replybuf)); else while ((error = ERR_get_error())) debug(DBG_ERR, "dtlsserverwr: SSL: %s", ERR_error_string(error, NULL)); - free(reply->buf); - free(reply); + freerq(reply); } } |