Skip to content

Commit 7140a2c

Browse files
committed
Radius: check correct var for error
1 parent f8b35d0 commit 7140a2c

File tree

1 file changed

+1
-1
lines changed
  • src/opnsense/mvc/app/library/OPNsense/Auth

1 file changed

+1
-1
lines changed

src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function authenticate($username, $password)
501501
syslog(LOG_ERR, 'RadiusError: ' . $error);
502502
} else {
503503
$request = radius_send_request($radius);
504-
if (!$radius) {
504+
if (!$request) {
505505
syslog(LOG_ERR, 'RadiusError: ' . radius_strerror($radius));
506506
} else {
507507
switch ($request) {

0 commit comments

Comments
 (0)