aboutsummaryrefslogtreecommitdiff
path: root/src/util/bio.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-22 19:09:09 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-22 19:09:09 +0000
commit6d4519cda7182216d28a1f44a2418df4f6a3ec0b (patch)
tree2e2bced832e0ef46d2c16006a8577d25b3ef9c50 /src/util/bio.c
parent12586cd08b2d8f797ef1a63501def72d5c875cf8 (diff)
downloadgnunet-6d4519cda7182216d28a1f44a2418df4f6a3ec0b.tar.gz
gnunet-6d4519cda7182216d28a1f44a2418df4f6a3ec0b.zip
fixes
Diffstat (limited to 'src/util/bio.c')
-rw-r--r--src/util/bio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/bio.c b/src/util/bio.c
index 102d3df50..e1085faa6 100644
--- a/src/util/bio.c
+++ b/src/util/bio.c
@@ -449,6 +449,11 @@ GNUNET_BIO_write_meta_data (struct GNUNET_BIO_WriteHandle *h,
449 GNUNET_CONTAINER_META_DATA_SERIALIZE_PART 449 GNUNET_CONTAINER_META_DATA_SERIALIZE_PART
450 | 450 |
451 GNUNET_CONTAINER_META_DATA_SERIALIZE_NO_COMPRESS); 451 GNUNET_CONTAINER_META_DATA_SERIALIZE_NO_COMPRESS);
452 if (size == -1)
453 {
454 GNUNET_free (buf);
455 return GNUNET_SYSERR;
456 }
452 if ( (GNUNET_OK != GNUNET_BIO_write_int32 (h, (uint32_t) size)) || 457 if ( (GNUNET_OK != GNUNET_BIO_write_int32 (h, (uint32_t) size)) ||
453 (GNUNET_OK != GNUNET_BIO_write (h, buf, size)) ) 458 (GNUNET_OK != GNUNET_BIO_write (h, buf, size)) )
454 { 459 {