summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[anp/hsw] <sysop@880.ru>2021-03-27 13:49:18 +0700
committerVladislav Grishenko <themiron@mail.ru>2021-03-28 20:25:31 +0500
commita77f9e071f084918bbb805c2509aec0f47fcf95b (patch)
treee665350a6af2750fb407350468c6accbb18211c8
parente5575a7497104d54da4b5de5580ffe83eb4f8230 (diff)
downloadaccel-ppp-a77f9e071f084918bbb805c2509aec0f47fcf95b.tar.gz
accel-ppp-a77f9e071f084918bbb805c2509aec0f47fcf95b.zip
radius: fix segfault regression after 62f7740033f05053a581e864742575a46ccc6da2
-rw-r--r--accel-pppd/radius/auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/radius/auth.c b/accel-pppd/radius/auth.c
index 10d0454c..05058547 100644
--- a/accel-pppd/radius/auth.c
+++ b/accel-pppd/radius/auth.c
@@ -147,9 +147,10 @@ static void rad_auth_finalize(struct radius_pd_t *rpd, int r)
{
hold_pd(rpd);
- if (rpd->auth_ctx) {
+ if (rpd->auth_ctx)
rpd->auth_ctx->cb(rpd->auth_ctx->cb_arg, r);
+ if (rpd->auth_ctx) {
if (r == PWDB_SUCCESS) {
rpd->auth_reply = rpd->auth_ctx->req->reply;
rpd->auth_ctx->req->reply = NULL;