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 <neal@g10code.com>.
This commit is contained in:
Neal H. Walfield 2015-08-12 12:03:23 +02:00
parent 75fd86bbd1
commit fa9fda23c2
1 changed files with 1 additions and 1 deletions

View File

@ -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];