]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9478 fix breakage from ITS#9348
authorHoward Chu <hyc@openldap.org>
Wed, 24 Feb 2021 20:09:58 +0000 (20:09 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Feb 2021 20:09:58 +0000 (20:09 +0000)
contrib/slapd-modules/nssov/nssov.c
contrib/slapd-modules/nssov/nssov.h

index 80afb12f8187f2e0a707d41a283c758198568c29..c656f33bbde0b0a392dd0e68fb0bb5e7be9e73f1 100644 (file)
@@ -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)) );
                        }
index c1d0bf5c13bda60ffa5120394b220c088279d017..99d52ec8e853bda6036dfb60560ed33e1590cb32 100644 (file)
@@ -28,6 +28,7 @@
 #endif
 
 #include <stdio.h>
+#include <errno.h>
 
 #include "nslcd.h"
 #include "nslcd-prot.h"