Commit 85db2b5f authored by Mark Andrews's avatar Mark Andrews
Browse files

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

                        ISC_R_SUCCESS. [RT #17137]
parent 10b4a0c3
2232. [bug] dns_adb_findaddrinfo() could fail and return
ISC_R_SUCCESS. [RT #17137]
2231. [bug] Building dlzbdb (contrib/dlz/bin/dlzbdb) was broken.
[RT #17088]
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.231 2007/06/18 23:47:40 tbox Exp $ */
/* $Id: adb.c,v 1.232 2007/09/11 02:18:38 marka Exp $ */
/*! \file
*
......@@ -3471,7 +3471,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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment