Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lukas However
OpenLDAP
Commits
83b1ce98
Commit
83b1ce98
authored
Dec 31, 2004
by
Kurt Zeilenga
Browse files
inet_addr cleanup
parent
35f44be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/os-ip.c
View file @
83b1ce98
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment