Commit 8670bb6b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add missing sockerr call

parent 3112f216
...@@ -279,6 +279,7 @@ static Listener * open_listener( const char* url ) ...@@ -279,6 +279,7 @@ static Listener * open_listener( const char* url )
do { do {
l.sl_sd = socket( sai->ai_family, sai->ai_socktype, sai->ai_protocol); l.sl_sd = socket( sai->ai_family, sai->ai_socktype, sai->ai_protocol);
if ( l.sl_sd == AC_SOCKET_INVALID ) { if ( l.sl_sd == AC_SOCKET_INVALID ) {
int err = sock_errno();
Debug( LDAP_DEBUG_ANY, Debug( LDAP_DEBUG_ANY,
"daemon: socket() failed errno=%d (%s)\n", err, "daemon: socket() failed errno=%d (%s)\n", err,
sock_errstr(err), 0 ); sock_errstr(err), 0 );
...@@ -437,7 +438,7 @@ static Listener * open_listener( const char* url ) ...@@ -437,7 +438,7 @@ static Listener * open_listener( const char* url )
# ifdef LDAP_PF_UNIX # ifdef LDAP_PF_UNIX
case AF_UNIX: case AF_UNIX:
if ( chmod( (char *)sai->ai_addr, S_IRWXU ) < 0 ) { if ( chmod( (char *)sai->ai_addr, S_IRWXU ) < 0 ) {
err = sock_errno(); int err = sock_errno();
Debug( LDAP_DEBUG_ANY, "daemon: fchmod(%ld) failed errno=%d (%s)", Debug( LDAP_DEBUG_ANY, "daemon: fchmod(%ld) failed errno=%d (%s)",
(long) l.sl_sd, err, sock_errstr(err) ); (long) l.sl_sd, err, sock_errstr(err) );
tcp_close( l.sl_sd ); tcp_close( l.sl_sd );
......
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