2.1.6 Segfault (unlang: if (NAS-Port == 0) { reject }
Hi, Reproducible on 2.1.6, default config with: These lines in the authorize section: if (NAS-Port == 0) { reject } And this command: echo "User-Name = test" | radclient 10.252.24.114 auth testing123 An Access-Request packet not containing the NAS-Port Attribute causes the server to segfault. Cheers --Mike P.S. Workaround: if (NAS-Port && NAS-Port == 0) {
Hi,
Reproducible on 2.1.6, default config with: These lines in the authorize section: if (NAS-Port == 0) { reject }
are you checking to see if the value exists (and is 0, or if the value is null or not present? be aware that remote requests arriving your way may not have details such as NAS-IP-Address or NAS-Port..... does this exhibit the same bahaviour (at this point in time dont have a box to take down... ;-) )? if ("%{NAS-Port}" == "0") { reject } alan
participants (3)
-
Alan Buxey -
Alan DeKok -
Michael Bryant