2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-04 00:25:29 +00:00

Remove redundant test

This commit is contained in:
Mark Andrews
2000-08-14 01:28:21 +00:00
parent ff59f0e4fe
commit a207c319ac

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: gethost.c,v 1.23 2000/08/01 01:32:14 tale Exp $ */
/* $Id: gethost.c,v 1.24 2000/08/14 01:28:21 marka Exp $ */
#include <config.h>
@@ -106,7 +106,6 @@ lwres_gethostbyname_r(const char *name, struct hostent *resbuf,
if (he == NULL)
return (NULL);
res = copytobuf(he, resbuf, buf, buflen);
if (he != NULL)
lwres_freehostent(he);
if (res != 0) {
errno = ERANGE;
@@ -127,7 +126,6 @@ lwres_gethostbyaddr_r(const char *addr, int len, int type,
if (he == NULL)
return (NULL);
res = copytobuf(he, resbuf, buf, buflen);
if (he != NULL)
lwres_freehostent(he);
if (res != 0) {
errno = ERANGE;