2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

inet_* checks used NULL as a parameter, which was not necessarily defined

This commit is contained in:
David Lawrence 2000-04-27 23:07:10 +00:00
parent 145bd6ea33
commit a2495a1323
2 changed files with 8 additions and 8 deletions

8
configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh
# From configure.in Revision: 1.119
# From configure.in Revision: 1.120
@ -3444,7 +3444,7 @@ cat > conftest.$ac_ext <<EOF
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_ntop(0, NULL, NULL, 0); return (0);
inet_ntop(0, 0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@ -3471,7 +3471,7 @@ cat > conftest.$ac_ext <<EOF
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_pton(0, NULL, NULL); return (0);
inet_pton(0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@ -3498,7 +3498,7 @@ cat > conftest.$ac_ext <<EOF
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
struct in_addr in; inet_aton(NULL, &in); return (0);
struct in_addr in; inet_aton(0, &in); return (0);
; return 0; }
EOF
if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then

View File

@ -13,7 +13,7 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE.
AC_REVISION($Revision: 1.119 $)
AC_REVISION($Revision: 1.120 $)
AC_PREREQ(2.13)
@ -699,7 +699,7 @@ AC_TRY_LINK([
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>],
[inet_ntop(0, NULL, NULL, 0); return (0);],
[inet_ntop(0, 0, 0, 0); return (0);],
[AC_MSG_RESULT(yes)
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"],
@ -712,7 +712,7 @@ AC_TRY_LINK([
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>],
[inet_pton(0, NULL, NULL); return (0);],
[inet_pton(0, 0, 0); return (0);],
[AC_MSG_RESULT(yes)
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"],
@ -725,7 +725,7 @@ AC_TRY_LINK([
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>],
[struct in_addr in; inet_aton(NULL, &in); return (0);],
[struct in_addr in; inet_aton(0, &in); return (0);],
[AC_MSG_RESULT(yes)
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"],