summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-02-06 18:07:20 +0200
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-02-06 18:07:20 +0200
commitee53459c7d09d7bcb2482ebead9a1d10f5ad7180 (patch)
tree0f19fdae2630132126c06d301626fbc605430fd0
parent3c3cf8d2bcc94d054e32e9b8db637a15d6b80f62 (diff)
downloadaccel-ppp-ee53459c7d09d7bcb2482ebead9a1d10f5ad7180.tar.gz
accel-ppp-ee53459c7d09d7bcb2482ebead9a1d10f5ad7180.zip
radius: Fix to same type of allocator and deallocator
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
-rw-r--r--accel-pppd/radius/req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c
index e3c41996..4c982d88 100644
--- a/accel-pppd/radius/req.c
+++ b/accel-pppd/radius/req.c
@@ -78,9 +78,9 @@ static struct rad_req_t *__rad_req_alloc(struct radius_pd_t *rpd, int code, cons
if (code == CODE_ACCESS_REQUEST && conf_blast_protection) {
uint8_t buf[HMAC_MD5_LEN] = {0};
req->pack->message_authenticator = 1;
- req->pack->secret = (uint8_t *)strdup(req->serv->secret);
+ req->pack->secret = (uint8_t *)_strdup(req->serv->secret);
if (rad_packet_add_octets(req->pack, NULL, "Message-Authenticator", buf, HMAC_MD5_LEN)) {
- free(req->pack->secret);
+ _free(req->pack->secret);
req->pack->secret = NULL;
goto out_err;
}