mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Check LWRES_PLATFORM_HAVESALEN, not ISC_PLATFORM_HAVESALEN
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: getnameinfo.c,v 1.20 2000/06/28 21:55:33 bwelling Exp $ */
|
||||
/* $Id: getnameinfo.c,v 1.21 2000/07/06 21:42:05 bwelling Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
@@ -112,7 +112,7 @@ lwres_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
|
||||
struct afd *afd;
|
||||
struct servent *sp;
|
||||
unsigned short port;
|
||||
#ifdef ISC_PLATFORM_HAVESALEN
|
||||
#ifdef LWRES_PLATFORM_HAVESALEN
|
||||
size_t len;
|
||||
#endif
|
||||
int family, i;
|
||||
@@ -135,7 +135,7 @@ lwres_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
|
||||
if (sa == NULL)
|
||||
ERR(ENI_NOSOCKET);
|
||||
|
||||
#ifdef ISC_PLATFORM_HAVESALEN
|
||||
#ifdef LWRES_PLATFORM_HAVESALEN
|
||||
len = sa->sa_len;
|
||||
if (len != salen)
|
||||
ERR(ENI_SALEN);
|
||||
|
Reference in New Issue
Block a user