Skip to content

Commit 6344514

Browse files
committed
return invalid if user-name/realm is not set
1 parent 9b40ee9 commit 6344514

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ sub authorize {
308308

309309
my $username = $RAD_REQUEST{'User-Name'};
310310
my $realm = $RAD_REQUEST{'Realm'};
311+
return RLM_MODULE_INVALID unless (defined($username) && defined($realm));
311312

312313
{
313314
lock(%realms);

0 commit comments

Comments
 (0)