2232. [bug] dns_adb_findaddrinfo() could fail and return

ISC_R_SUCCESS. [RT #17137]
This commit is contained in:
Mark Andrews
2007-09-11 02:22:36 +00:00
parent 6e94a29e5d
commit 624f83d8a4
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -1,3 +1,6 @@
2232. [bug] dns_adb_findaddrinfo() could fail and return
ISC_R_SUCCESS. [RT #17137]
2230. [bug] We could INSIST reading a corrupted journal.
[RT #17132]
+4 -2
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.181.2.11.2.29 2007/08/28 07:19:13 tbox Exp $ */
/* $Id: adb.c,v 1.181.2.11.2.30 2007/09/11 02:22:36 marka Exp $ */
/*
* Implementation notes
@@ -3459,7 +3459,9 @@ dns_adb_findaddrinfo(dns_adb_t *adb, isc_sockaddr_t *sa,
port = isc_sockaddr_getport(sa);
addr = new_adbaddrinfo(adb, entry, port);
if (addr != NULL) {
if (addr == NULL) {
result = ISC_R_NOMEMORY;
} else {
inc_entry_refcnt(adb, entry, ISC_FALSE);
*addrp = addr;
}