Fix parentheses in write() to CLUSTERIP control files
authorMartin Willi <martin@revosec.ch>
Thu, 14 Jul 2011 13:56:10 +0000 (15:56 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 14 Jul 2011 13:56:10 +0000 (15:56 +0200)
src/libcharon/plugins/ha/ha_kernel.c

index 56bdbf4..250c3ef 100644 (file)
@@ -123,7 +123,7 @@ static void enable_disable(private_ha_kernel_t *this, u_int segment,
                         file, strerror(errno));
                return;
        }
-       if (write(fd, cmd, strlen(cmd) == -1))
+       if (write(fd, cmd, strlen(cmd)) == -1)
        {
                DBG1(DBG_CFG, "writing to CLUSTERIP file '%s' failed: %s",
                         file, strerror(errno));