[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in CheckNetAssigned with Fix.
- To: <Northstar-devel@brownkid.net>
- Subject: Bug in CheckNetAssigned with Fix.
- From: "Billy Huddleston" <billy@nxs.net>
- Date: Fri, 29 Mar 2002 15:26:20 -0500
- Delivered-to: mailing list northstar-devel@brownkid.net
- Mailing-list: contact northstar-devel-help@brownkid.net; run by ezmlm
--- 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 |
+--------------------------------------------------+