summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-09-03 06:26:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-09-03 06:26:18 +0000
commit0e6c35d1237d31f4f4b1ee6d46f28f85ffea1544 (patch)
tree8bd254a1ee7853860c3d8a8b6cc843e4cce9943b /usr.sbin/smtpd
parent2ba0b3ae6b66a1aae1e22e3b817acb87c1fcd8e2 (diff)
move paren to correctly return a negative error value instead of the
result of the < 0 test which would be 1. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/iobuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/iobuf.c b/usr.sbin/smtpd/iobuf.c
index 8d3e6a54c00..31ce297b998 100644
--- a/usr.sbin/smtpd/iobuf.c
+++ b/usr.sbin/smtpd/iobuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iobuf.c,v 1.5 2013/05/24 17:03:14 eric Exp $ */
+/* $OpenBSD: iobuf.c,v 1.6 2015/09/03 06:26:17 jsg Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -395,7 +395,7 @@ iobuf_flush_ssl(struct iobuf *io, void *ssl)
ssize_t s;
while (io->queued)
- if ((s = iobuf_write_ssl(io, ssl) < 0))
+ if ((s = iobuf_write_ssl(io, ssl)) < 0)
return (s);
return (0);