diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2017-01-23 09:21:05 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2017-01-23 09:21:05 +0000 |
commit | 265625d34efc350951296863b5c8e155153434f6 (patch) | |
tree | 7622c3dd2df882c6336f869f533882c1c07c0d43 | |
parent | a4e069118a16086ec8a4359c03de70a095928634 (diff) |
check EAGAIN in the correct place,
noticed and ok phessler@
-rw-r--r-- | libexec/spamd/spamd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index 6f33b33084c..12bf20915e6 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.149 2017/01/23 09:09:15 beck Exp $ */ +/* $OpenBSD: spamd.c,v 1.150 2017/01/23 09:21:04 beck Exp $ */ /* * Copyright (c) 2015 Henning Brauer <henning@openbsd.org> @@ -1099,9 +1099,9 @@ handler(struct con *cp) if (n == 0) closecon(cp); - if (errno == EAGAIN) - return; else if (n == -1) { + if (errno == EAGAIN) + return; if (debug > 0) warn("read"); closecon(cp); |