diff options
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; } |