diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-10-14 16:45:00 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-14 16:45:00 +0400 |
commit | e112b9a40ce02081d52cfc144a9842ff3b4cd8d4 (patch) | |
tree | 0a94c81f63c0311c3ee9a16606b0a7635664803f /accel-pppd/radius/req.c | |
parent | 9265a505207b8eaa59202628ac93e4a45d155d62 (diff) | |
download | accel-ppp-e112b9a40ce02081d52cfc144a9842ff3b4cd8d4.tar.gz accel-ppp-e112b9a40ce02081d52cfc144a9842ff3b4cd8d4.zip |
radius: properly handle send failures
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd/radius/req.c')
-rw-r--r-- | accel-pppd/radius/req.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c index 3224134f..70e0431f 100644 --- a/accel-pppd/radius/req.c +++ b/accel-pppd/radius/req.c @@ -146,7 +146,10 @@ struct rad_req_t *rad_req_alloc2(struct radius_pd_t *rpd, int code, const char * if (code == CODE_ACCOUNTING_REQUEST) req->server_port = req->serv->acct_port; - make_socket(req); + if (make_socket(req)) { + rad_req_free(req); + req = NULL; + } return req; } |