artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360604e
)
Fix bogus error check; spotted by clang.
author
kettenis
<kettenis@openbsd.org>
Sun, 4 May 2014 12:24:26 +0000
(12:24 +0000)
committer
kettenis
<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
patch
|
blob
|
history
diff --git
a/usr.sbin/nsd/server.c
b/usr.sbin/nsd/server.c
index
b208f7b
..
a00015d
100644
(file)
--- 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));