From ee53459c7d09d7bcb2482ebead9a1d10f5ad7180 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Fri, 6 Feb 2026 18:07:20 +0200 Subject: radius: Fix to same type of allocator and deallocator Signed-off-by: Denys Fedoryshchenko --- accel-pppd/radius/req.c | 4 ++-- 1 file 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; } -- cgit v1.2.3