Commit 83b1ce98 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

inet_addr cleanup

parent 35f44be6
......@@ -349,11 +349,14 @@ int
ldap_pvt_inet_aton( const char *host, struct in_addr *in)
{
unsigned long u = inet_addr( host );
if ( u != 0xffffffff || u != (unsigned long) -1 ) {
in->s_addr = u;
return 1;
}
return 0;
#ifdef INADDR_NONE
if ( u == INADDR_NONE ) return 0;
#endif
if ( u == 0xffffffffUL || u == (unsigned long) -1L ) return 0;
in->s_addr = u;
return 1;
}
#endif
......
Supports Markdown
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