mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
2618. [bug] The sdb and sdlz db_interator_seek() methods could
loop infinitely. [RT #19847]
This commit is contained in:
parent
870332fb6d
commit
01dbc4fc00
5
CHANGES
5
CHANGES
@ -1,6 +1,9 @@
|
||||
2618. [bug] The sdb and sdlz db_interator_seek() methods could
|
||||
loop infinitely. [RT #19847]
|
||||
|
||||
2617. [bug] ifconfig.sh failed to emit an error message when
|
||||
run from the wrong location. [RT #19375]
|
||||
ZZ
|
||||
|
||||
2616. [bug] 'host' used the nameservers from resolv.conf even
|
||||
when a explicit nameserver was specified. [RT #19852]
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sdb.c,v 1.68 2009/04/21 23:48:04 tbox Exp $ */
|
||||
/* $Id: sdb.c,v 1.69 2009/06/26 06:21:02 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@ -1458,9 +1458,11 @@ dbiterator_seek(dns_dbiterator_t *iterator, dns_name_t *name) {
|
||||
sdb_dbiterator_t *sdbiter = (sdb_dbiterator_t *)iterator;
|
||||
|
||||
sdbiter->current = ISC_LIST_HEAD(sdbiter->nodelist);
|
||||
while (sdbiter->current != NULL)
|
||||
while (sdbiter->current != NULL) {
|
||||
if (dns_name_equal(sdbiter->current->name, name))
|
||||
return (ISC_R_SUCCESS);
|
||||
sdbiter->current = ISC_LIST_NEXT(sdbiter->current, link);
|
||||
}
|
||||
return (ISC_R_NOTFOUND);
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
* USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sdlz.c,v 1.20 2009/04/21 23:48:04 tbox Exp $ */
|
||||
/* $Id: sdlz.c,v 1.21 2009/06/26 06:21:03 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@ -1117,9 +1117,11 @@ dbiterator_seek(dns_dbiterator_t *iterator, dns_name_t *name) {
|
||||
sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
|
||||
|
||||
sdlziter->current = ISC_LIST_HEAD(sdlziter->nodelist);
|
||||
while (sdlziter->current != NULL)
|
||||
while (sdlziter->current != NULL) {
|
||||
if (dns_name_equal(sdlziter->current->name, name))
|
||||
return (ISC_R_SUCCESS);
|
||||
sdlziter->current = ISC_LIST_NEXT(sdlziter->current, link);
|
||||
}
|
||||
return (ISC_R_NOTFOUND);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user