Commit a2495a13 authored by David Lawrence's avatar David Lawrence
Browse files

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

parent 145bd6ea
#! /bin/sh #! /bin/sh
# From configure.in Revision: 1.119 # From configure.in Revision: 1.120
...@@ -3444,7 +3444,7 @@ cat > conftest.$ac_ext <<EOF ...@@ -3444,7 +3444,7 @@ cat > conftest.$ac_ext <<EOF
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
int main() { int main() {
inet_ntop(0, NULL, NULL, 0); return (0); inet_ntop(0, 0, 0, 0); return (0);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 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 ...@@ -3471,7 +3471,7 @@ cat > conftest.$ac_ext <<EOF
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
int main() { int main() {
inet_pton(0, NULL, NULL); return (0); inet_pton(0, 0, 0); return (0);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 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 ...@@ -3498,7 +3498,7 @@ cat > conftest.$ac_ext <<EOF
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
int main() { int main() {
struct in_addr in; inet_aton(NULL, &in); return (0); struct in_addr in; inet_aton(0, &in); return (0);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
......
...@@ -13,7 +13,7 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ...@@ -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 ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE. dnl SOFTWARE.
AC_REVISION($Revision: 1.119 $) AC_REVISION($Revision: 1.120 $)
AC_PREREQ(2.13) AC_PREREQ(2.13)
...@@ -699,7 +699,7 @@ AC_TRY_LINK([ ...@@ -699,7 +699,7 @@ AC_TRY_LINK([
#include <sys/types.h> #include <sys/types.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.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) [AC_MSG_RESULT(yes)
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"], ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"],
...@@ -712,7 +712,7 @@ AC_TRY_LINK([ ...@@ -712,7 +712,7 @@ AC_TRY_LINK([
#include <sys/types.h> #include <sys/types.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h>], #include <arpa/inet.h>],
[inet_pton(0, NULL, NULL); return (0);], [inet_pton(0, 0, 0); return (0);],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"], ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"],
...@@ -725,7 +725,7 @@ AC_TRY_LINK([ ...@@ -725,7 +725,7 @@ AC_TRY_LINK([
#include <sys/types.h> #include <sys/types.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.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) [AC_MSG_RESULT(yes)
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"], ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"],
......
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