From: kettenis Date: Sun, 4 May 2014 12:24:26 +0000 (+0000) Subject: Fix bogus error check; spotted by clang. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b95e59d41ad11be2e966575eec430817add44051;p=openbsd Fix bogus error check; spotted by clang. Submitted upstream by brad@ (and subsequently committed there). ok jca@, mikeb@, brad@ --- diff --git a/usr.sbin/nsd/server.c b/usr.sbin/nsd/server.c index b208f7b1fb8..a00015d56cc 100644 --- a/usr.sbin/nsd/server.c +++ b/usr.sbin/nsd/server.c @@ -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));