Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
b57d317f
Commit
b57d317f
authored
Feb 24, 2021
by
Howard Chu
Browse files
ITS#9478 fix breakage from ITS#9348
parent
22fd5a89
Changes
2
Hide whitespace changes
Inline
Side-by-side
contrib/slapd-modules/nssov/nssov.c
View file @
b57d317f
...
...
@@ -928,7 +928,7 @@ nssov_db_open(
Debug
(
LDAP_DEBUG_ANY
,
"nssov: bind() to "
NSLCD_SOCKET
" failed: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
if
(
close
(
sock
))
{
saved_errno
=
errno
saved_errno
=
errno
;
Debug
(
LDAP_DEBUG_ANY
,
"nssov: problem closing socket: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
}
...
...
@@ -941,7 +941,7 @@ nssov_db_open(
Debug
(
LDAP_DEBUG_ANY
,
"nssov: fcntl(F_SETFL,O_NONBLOCK) failed: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
if
(
close
(
sock
))
{
saved_errno
=
errno
saved_errno
=
errno
;
Debug
(
LDAP_DEBUG_ANY
,
"nssov: problem closing socket: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
}
...
...
@@ -958,7 +958,7 @@ nssov_db_open(
Debug
(
LDAP_DEBUG_ANY
,
"nssov: chmod(0666) failed: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
if
(
close
(
sock
))
{
saved_errno
=
errno
saved_errno
=
errno
;
Debug
(
LDAP_DEBUG_ANY
,
"nssov: problem closing socket: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
}
...
...
@@ -971,7 +971,7 @@ nssov_db_open(
Debug
(
LDAP_DEBUG_ANY
,
"nssov: listen() failed: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
if
(
close
(
sock
))
{
saved_errno
=
errno
saved_errno
=
errno
;
Debug
(
LDAP_DEBUG_ANY
,
"nssov: problem closing socket: %s"
,
AC_STRERROR_R
(
saved_errno
,
ebuf
,
sizeof
(
ebuf
))
);
}
...
...
contrib/slapd-modules/nssov/nssov.h
View file @
b57d317f
...
...
@@ -28,6 +28,7 @@
#endif
#include
<stdio.h>
#include
<errno.h>
#include
"nslcd.h"
#include
"nslcd-prot.h"
...
...
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