]> git.stg.codes - stg.git/commitdiff
Fix radius plugin authorization
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 21 Sep 2011 16:34:47 +0000 (19:34 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 21 Sep 2011 16:34:47 +0000 (19:34 +0300)
projects/stargazer/plugins/other/radius/radius.cpp

index 18c1881670bc78827ec462b8b036930cac96a627..480e6f16252aaab31d279a02e5e0ce43971294cf 100644 (file)
@@ -463,7 +463,7 @@ if (CanAcctService((char *)packet->service))
         return -1;
         }
     USER_IPS ips = ui->GetProperty().ips;
-    if (users->Authorize(ui->GetLogin(), ips[0].ip, 0xffFFffFF, this))
+    if (!users->Authorize(ui->GetLogin(), ips[0].ip, 0xffFFffFF, this))
         {
         printfd(__FILE__, "RADIUS::ProcessAcctStartPacket cannot authorize user '%s'\n", packet->login);
         packet->packetType = RAD_REJECT_PACKET;