teach sqlippool to report if it allocated and IP or not via return code. Closed bug 414
authorpnixon <pnixon>
Wed, 10 Jan 2007 16:07:18 +0000 (16:07 +0000)
committerpnixon <pnixon>
Wed, 10 Jan 2007 16:07:18 +0000 (16:07 +0000)
src/modules/rlm_sqlippool/rlm_sqlippool.c

index 031dfc8..378aff3 100644 (file)
@@ -578,7 +578,7 @@ static int sqlippool_postauth(void *instance, REQUEST * request)
 
                DEBUG("rlm_sqlippool: IP number could not be allocated.");
                sql_release_socket(data->sql_inst, sqlsocket);
-               return RLM_MODULE_NOOP;
+               return RLM_MODULE_NOTFOUND;
        }
 
        ip_allocation = ip_addr(allocation);