]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3506] Typo
authorFrancis Dupont <fdupont@isc.org>
Mon, 2 Sep 2024 07:16:59 +0000 (09:16 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 20 Sep 2024 12:55:54 +0000 (14:55 +0200)
src/lib/config/unix_command_mgr.cc

index 221786e29b719ce3c3df3c5efe026c51dca8bf40..77fa87e7800f971be592bcd7d7caf134c6a7ed94 100644 (file)
@@ -573,7 +573,7 @@ UnixCommandMgrImpl::openCommandSocket(const isc::data::ConstElementPtr& socket_i
 
     // First let's open lock file.
     std::string lock_name = getLockName();
-    if (lock_fd_ != 1) {
+    if (lock_fd_ != -1) {
         close(lock_fd_);
     }
     lock_fd_ = open(lock_name.c_str(), O_RDONLY | O_CREAT, 0600);