From cdd750812e40a7be0a15cc8a523ad0055423b288 Mon Sep 17 00:00:00 2001 From: gilles Date: Thu, 15 Oct 2015 08:29:41 +0000 Subject: [PATCH] iobuf_queue() should return the number of bytes it queued on success, not 0 ok eric@ --- usr.sbin/smtpd/iobuf.c | 4 ++-- 1 file 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 * @@ -287,7 +287,7 @@ iobuf_queue(struct iobuf *io, const void *data, size_t len) memmove(buf, data, len); - return (0); + return (len); } int -- 2.20.1