mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
oops, remove the other call to freehostent()
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: getaddresses.c,v 1.8 2001/11/16 04:41:58 bwelling Exp $ */
|
/* $Id: getaddresses.c,v 1.9 2001/11/16 06:48:22 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -138,10 +138,8 @@ bind9_getaddresses(const char *hostname, in_port_t port,
|
|||||||
return (ISC_R_FAILURE);
|
return (ISC_R_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (he->h_addrtype != AF_INET && he->h_addrtype != AF_INET6) {
|
if (he->h_addrtype != AF_INET && he->h_addrtype != AF_INET6)
|
||||||
freehostent(he);
|
|
||||||
return (ISC_R_NOTFOUND);
|
return (ISC_R_NOTFOUND);
|
||||||
}
|
|
||||||
for (i = 0; i < addrsize; i++) {
|
for (i = 0; i < addrsize; i++) {
|
||||||
if (he->h_addrtype == AF_INET) {
|
if (he->h_addrtype == AF_INET) {
|
||||||
struct in_addr *inp;
|
struct in_addr *inp;
|
||||||
|
Reference in New Issue
Block a user