You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue was introduced in version 1.1.8. The rc_getaddrinfo function (at /lib/ip_util.c) calls getaddrinfo(). This function returns an error when the "radius" (or "radius-acct") service is not defined in the /etc/services file. The library should take this case into account and use the default value.
As a workaround, I've used this code in rc_getaddrinfo:
char defport[10];
...
if (flags & PW_AI_AUTH)
{
service = "radius";
snprintf(defport, sizeof(defport), "%d", PW_AUTH_UDP_PORT);
}
else if (flags & PW_AI_ACCT)
{
service = "radius-acct";
snprintf(defport, sizeof(defport), "%d", PW_ACCT_UDP_PORT);
}
err = getaddrinfo(host, service, &hints, &res);
if (err != 0) {
/* Execute again using the default (old) radius port number */
hints.ai_flags |= AI_NUMERICSERV;
err = getaddrinfo(host, defport, &hints, &res);
if (err != 0) {
return NULL;
}
}
The text was updated successfully, but these errors were encountered:
The issue was introduced in version 1.1.8. The rc_getaddrinfo function (at /lib/ip_util.c) calls getaddrinfo(). This function returns an error when the "radius" (or "radius-acct") service is not defined in the /etc/services file. The library should take this case into account and use the default value.
As a workaround, I've used this code in rc_getaddrinfo:
The text was updated successfully, but these errors were encountered: