Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
279033fc
Commit
279033fc
authored
Oct 14, 2005
by
Kurt Zeilenga
Browse files
ITS#3440: (blind) fix for VxWorks inet_ntoa(3) leak,
use inet_ntoa_b(3) instead.
parent
b48ace2d
Changes
4
Hide whitespace changes
Inline
Side-by-side
configure
View file @
279033fc
#! /bin/sh
#! /bin/sh
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.60
0
2005/0
9
/1
7
2
0:22:15 hallvard
Exp .
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.60
1
2005/
1
0/1
3
2
1:52:21 kurt
Exp .
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
# Generated by GNU Autoconf 2.59.
#
#
...
@@ -41249,6 +41249,7 @@ fi
...
@@ -41249,6 +41249,7 @@ fi
for ac_func in \
for ac_func in \
...
@@ -41270,6 +41271,7 @@ for ac_func in \
...
@@ -41270,6 +41271,7 @@ for ac_func in \
getspnam \
getspnam \
gettimeofday \
gettimeofday \
initgroups \
initgroups \
inet_ntoa_b \
lockf \
lockf \
memcpy \
memcpy \
memmove \
memmove \
configure.in
View file @
279033fc
...
@@ -2531,6 +2531,7 @@ AC_CHECK_FUNCS( \
...
@@ -2531,6 +2531,7 @@ AC_CHECK_FUNCS( \
getspnam \
getspnam \
gettimeofday \
gettimeofday \
initgroups \
initgroups \
inet_ntoa_b \
lockf \
lockf \
memcpy \
memcpy \
memmove \
memmove \
...
...
include/portable.hin
View file @
279033fc
...
@@ -277,6 +277,9 @@
...
@@ -277,6 +277,9 @@
/* define to you inet_aton(3) is available */
/* define to you inet_aton(3) is available */
#undef HAVE_INET_ATON
#undef HAVE_INET_ATON
/* Define to 1 if you have the `inet_ntoa_b' function. */
#undef HAVE_INET_NTOA_B
/* Define to 1 if you have the `inet_ntop' function. */
/* Define to 1 if you have the `inet_ntop' function. */
#undef HAVE_INET_NTOP
#undef HAVE_INET_NTOP
...
...
libraries/libldap/os-ip.c
View file @
279033fc
...
@@ -529,8 +529,18 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
...
@@ -529,8 +529,18 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
sizeof
(
sin
.
sin_addr
)
);
sizeof
(
sin
.
sin_addr
)
);
}
}
#ifdef HAVE_INET_NTOA_B
{
/* for VxWorks */
char
address
[
INET_ADDR_LEN
];
inet_ntoa_b
(
sin
.
sin_address
,
address
);
osip_debug
(
ld
,
"ldap_connect_to_host: Trying %s:%d
\n
"
,
address
,
port
,
0
);
}
#else
osip_debug
(
ld
,
"ldap_connect_to_host: Trying %s:%d
\n
"
,
osip_debug
(
ld
,
"ldap_connect_to_host: Trying %s:%d
\n
"
,
inet_ntoa
(
sin
.
sin_addr
),
port
,
0
);
inet_ntoa
(
sin
.
sin_addr
),
port
,
0
);
#endif
rc
=
ldap_pvt_connect
(
ld
,
s
,
rc
=
ldap_pvt_connect
(
ld
,
s
,
(
struct
sockaddr
*
)
&
sin
,
sizeof
(
sin
),
(
struct
sockaddr
*
)
&
sin
,
sizeof
(
sin
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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