From fa9fda23c2c8cf6982b7263f6882ed8687d98c16 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Wed, 12 Aug 2015 12:03:23 +0200 Subject: [PATCH] common/iobuf.c: Fix filter type for iobuf_temp_with_content. * common/iobuf.c (iobuf_temp_with_content): Set the filter type to IOBUF_INPUT, not IOBUF_TEMP, which is only for output filters that write into a dynamic buffer. -- Signed-off-by: Neal H. Walfield . --- common/iobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/iobuf.c b/common/iobuf.c index fb9a620db..23d14e6af 100644 --- a/common/iobuf.c +++ b/common/iobuf.c @@ -1234,7 +1234,7 @@ iobuf_temp_with_content (const char *buffer, size_t length) iobuf_t a; int i; - a = iobuf_alloc (IOBUF_TEMP, length); + a = iobuf_alloc (IOBUF_INPUT, length); /* memcpy (a->d.buf, buffer, length); */ for (i=0; i < length; i++) a->d.buf[i] = buffer[i];