aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-08-12 10:03:23 +0000
committerNeal H. Walfield <[email protected]>2015-08-20 12:16:18 +0000
commitfa9fda23c2c8cf6982b7263f6882ed8687d98c16 (patch)
tree51aa4304876cdd23fe9db48b9de528cd9da9a7c4 /common/iobuf.c
parentcommon/iobuf.h: Remove unimplemented prototypes. (diff)
downloadgnupg-fa9fda23c2c8cf6982b7263f6882ed8687d98c16.tar.gz
gnupg-fa9fda23c2c8cf6982b7263f6882ed8687d98c16.zip
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 <[email protected]>.
Diffstat (limited to 'common/iobuf.c')
-rw-r--r--common/iobuf.c2
1 files changed, 1 insertions, 1 deletions
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];