aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-19 02:33:11 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-19 02:41:47 +0200
commit09f221a8156196769e6ab0e40094ca715316e543 (patch)
tree9637ec76e9e1abec4ca3305e01b6a445405250cb /src
parentf4771fcc1c3fda21a46d0cb85d8b29e012254696 (diff)
downloadgnunet-09f221a8156196769e6ab0e40094ca715316e543.tar.gz
gnunet-09f221a8156196769e6ab0e40094ca715316e543.zip
missing termination
Diffstat (limited to 'src')
-rw-r--r--src/fs/fs_api.c47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index 39e3add63..3d2ba3e99 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -943,17 +943,17 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h,
943 "expiration time", 943 "expiration time",
944 (int64_t *) &ret->bo.expiration_time.abs_value_us)) || 944 (int64_t *) &ret->bo.expiration_time.abs_value_us)) ||
945 (GNUNET_OK != GNUNET_BIO_read_int32 ( 945 (GNUNET_OK != GNUNET_BIO_read_int32 (
946 rh, 946 rh,
947 "anonymity level", 947 "anonymity level",
948 (int32_t *) &ret->bo.anonymity_level)) || 948 (int32_t *) &ret->bo.anonymity_level)) ||
949 (GNUNET_OK != GNUNET_BIO_read_int32 ( 949 (GNUNET_OK != GNUNET_BIO_read_int32 (
950 rh, 950 rh,
951 "content priority", 951 "content priority",
952 (int32_t *) &ret->bo.content_priority)) || 952 (int32_t *) &ret->bo.content_priority)) ||
953 (GNUNET_OK != GNUNET_BIO_read_int32 ( 953 (GNUNET_OK != GNUNET_BIO_read_int32 (
954 rh, 954 rh,
955 "replication level", 955 "replication level",
956 (int32_t *) &ret->bo.replication_level))) 956 (int32_t *) &ret->bo.replication_level)))
957 { 957 {
958 GNUNET_break (0); 958 GNUNET_break (0);
959 goto cleanup; 959 goto cleanup;
@@ -1090,7 +1090,7 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h,
1090 GNUNET_BIO_read_int64 ( 1090 GNUNET_BIO_read_int64 (
1091 rh, 1091 rh,
1092 "contents size", 1092 "contents size",
1093 (int64_t *)&ret->data.dir.contents_size)) || 1093 (int64_t *) &ret->data.dir.contents_size)) ||
1094 (NULL == (ret->data.dir.dir_data = GNUNET_malloc_large (dsize))) || 1094 (NULL == (ret->data.dir.dir_data = GNUNET_malloc_large (dsize))) ||
1095 (GNUNET_OK != 1095 (GNUNET_OK !=
1096 GNUNET_BIO_read (rh, "dir-data", ret->data.dir.dir_data, dsize)) || 1096 GNUNET_BIO_read (rh, "dir-data", ret->data.dir.dir_data, dsize)) ||
@@ -1795,7 +1795,8 @@ GNUNET_FS_publish_sync_ (struct GNUNET_FS_PublishContext *pc)
1795 GNUNET_BIO_write_spec_string ("serialization", pc->fi->serialization), 1795 GNUNET_BIO_write_spec_string ("serialization", pc->fi->serialization),
1796 GNUNET_BIO_write_spec_string ("pos serialization", (NULL == pc->fi_pos) 1796 GNUNET_BIO_write_spec_string ("pos serialization", (NULL == pc->fi_pos)
1797 ? NULL 1797 ? NULL
1798 : pc->fi_pos->serialization) 1798 : pc->fi_pos->serialization),
1799 GNUNET_BIO_read_spec_end ()
1799 }; 1800 };
1800 if ((GNUNET_OK != GNUNET_BIO_write_spec_commit (wh, ws)) || 1801 if ((GNUNET_OK != GNUNET_BIO_write_spec_commit (wh, ws)) ||
1801 ((NULL != pc->ns) && 1802 ((NULL != pc->ns) &&
@@ -2580,21 +2581,21 @@ deserialize_search_result (void *cls, const char *filename)
2580 &sr->key, 2581 &sr->key,
2581 sizeof(struct GNUNET_HashCode))) || 2582 sizeof(struct GNUNET_HashCode))) ||
2582 (GNUNET_OK != GNUNET_BIO_read_int32 ( 2583 (GNUNET_OK != GNUNET_BIO_read_int32 (
2583 rh, 2584 rh,
2584 "mandatory missing", 2585 "mandatory missing",
2585 (int32_t *) &sr->mandatory_missing)) || 2586 (int32_t *) &sr->mandatory_missing)) ||
2586 (GNUNET_OK != GNUNET_BIO_read_int32 ( 2587 (GNUNET_OK != GNUNET_BIO_read_int32 (
2587 rh, 2588 rh,
2588 "optional support", 2589 "optional support",
2589 (int32_t *) &sr->optional_support)) || 2590 (int32_t *) &sr->optional_support)) ||
2590 (GNUNET_OK != GNUNET_BIO_read_int32 ( 2591 (GNUNET_OK != GNUNET_BIO_read_int32 (
2591 rh, 2592 rh,
2592 "availability success", 2593 "availability success",
2593 (int32_t *) &sr->availability_success)) || 2594 (int32_t *) &sr->availability_success)) ||
2594 (GNUNET_OK != GNUNET_BIO_read_int32 ( 2595 (GNUNET_OK != GNUNET_BIO_read_int32 (
2595 rh, 2596 rh,
2596 "availability trials", 2597 "availability trials",
2597 (int32_t *) &sr->availability_trials))) 2598 (int32_t *) &sr->availability_trials)))
2598 { 2599 {
2599 GNUNET_break (0); 2600 GNUNET_break (0);
2600 goto cleanup; 2601 goto cleanup;