[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in CheckNetAssigned with Fix.



--- old ---
        $sth->execute();
        db_rescheck(\$sth,'checknetassigned_get','1');

        if($sth->rows != 1) {
                return(0);
        }
--- end old ---

--- new ---
        $sth->execute();
        db_rescheck(\$sth,'checknetassigned_get','1');

        if($sth->rows < 1) {
                return(0);
        }
--- end new ---

Would cause strange behafiour in allocations etc because
If a subnet had just had 1 allocatted subnet in it, it would
return as if it had nothing allocated in it.

             +--------------------------------------------------+
             | Billy Huddleston   Senior Systems Administrator  |
             | Net-Express                  http://www.nxs.net  |
             | 114 Sherway Rd.             Voice: 865-691-2011  |
             | Knoxville, TN  37922          Fax: 865-691-9894  |
             | billy@nxs.net                                    |
             +--------------------------------------------------+