summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/req.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2018-02-19 12:03:58 +0300
committerDmitry Kozlov <xeb@mail.ru>2018-02-19 12:03:58 +0300
commit956cb489628621a2298937afeaed57cccf605bb2 (patch)
tree7934b06f280995edcfbe8b7ac6eb9a2240d9ae5d /accel-pppd/radius/req.c
parentc414d89fc30194bf3dddaf5d422baeb964178e93 (diff)
downloadaccel-ppp-xebd-956cb489628621a2298937afeaed57cccf605bb2.tar.gz
accel-ppp-xebd-956cb489628621a2298937afeaed57cccf605bb2.zip
radius: fixed invalid behaviour when route to radius server is not existing
Diffstat (limited to 'accel-pppd/radius/req.c')
-rw-r--r--accel-pppd/radius/req.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c
index b09b880..b6c4cf0 100644
--- a/accel-pppd/radius/req.c
+++ b/accel-pppd/radius/req.c
@@ -313,7 +313,7 @@ int __rad_req_send(struct rad_req_t *req, int async)
}
if (req->hnd.fd == -1 && make_socket(req))
- return -1;
+ return -2;
if (req->before_send && req->before_send(req))
goto out_err;