Fix bogus error check; spotted by clang.
authorkettenis <kettenis@openbsd.org>
Sun, 4 May 2014 12:24:26 +0000 (12:24 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 4 May 2014 12:24:26 +0000 (12:24 +0000)
Submitted upstream by brad@ (and subsequently committed there).

ok jca@, mikeb@, brad@

usr.sbin/nsd/server.c

index b208f7b..a00015d 100644 (file)
@@ -1305,7 +1305,7 @@ server_main(struct nsd *nsd)
                                        task_process_sync(nsd->task[nsd->mytask]);
                                        /* inform xfrd reload attempt ended */
                                        if(!write_socket(nsd->xfrd_listener->fd,
-                                               &cmd, sizeof(cmd)) == -1) {
+                                               &cmd, sizeof(cmd))) {
                                                log_msg(LOG_ERR, "problems "
                                                  "sending SOAEND to xfrd: %s",
                                                  strerror(errno));