From b95e59d41ad11be2e966575eec430817add44051 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 4 May 2014 12:24:26 +0000 Subject: [PATCH] Fix bogus error check; spotted by clang. Submitted upstream by brad@ (and subsequently committed there). ok jca@, mikeb@, brad@ --- usr.sbin/nsd/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.20.1