summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2015-10-15 08:29:41 +0000
committergilles <gilles@openbsd.org>2015-10-15 08:29:41 +0000
commitcdd750812e40a7be0a15cc8a523ad0055423b288 (patch)
tree671632d90adf72ff2ad4e7612b5ec1eb6fd8be64
parentLet "all" as an argument for "resume envelope", "pause envelope" (diff)
downloadwireguard-openbsd-cdd750812e40a7be0a15cc8a523ad0055423b288.tar.xz
wireguard-openbsd-cdd750812e40a7be0a15cc8a523ad0055423b288.zip
iobuf_queue() should return the number of bytes it queued on success, not 0
ok eric@
-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 31ce297b998..3daf19055a4 100644
--- a/usr.sbin/smtpd/iobuf.c
+++ b/usr.sbin/smtpd/iobuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iobuf.c,v 1.6 2015/09/03 06:26:17 jsg Exp $ */
+/* $OpenBSD: iobuf.c,v 1.7 2015/10/15 08:29:41 gilles Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -287,7 +287,7 @@ iobuf_queue(struct iobuf *io, const void *data, size_t len)
memmove(buf, data, len);
- return (0);
+ return (len);
}
int