Skip to content

Commit

Permalink
plugins/radius: fix segfault during shutdown.
Browse files Browse the repository at this point in the history
Closes: #454
Signed-off-by: Jaco Kroon <[email protected]>
  • Loading branch information
jkroonza committed Oct 14, 2023
1 parent 1480d43 commit 48d231c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pppd/plugins/radius/radattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ cleanup(void *opaque, int arg)
{
char fname[512];

slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ppp_get_ifname(NULL,0));
slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ppp_ifname());
(void) remove(fname);
dbglog("RADATTR plugin removed file %s.", fname);
}

0 comments on commit 48d231c

Please sign in to comment.