From 2218ab50b4052d057d5ec6239123c824f3ffe90b Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Mon, 25 Jun 2018 16:22:44 +0200 Subject: [PATCH] fix test issues --- src/gnsrecord/gnsrecord_serialization.c | 6 ++++++ src/namestore/test_namestore_api_lookup_shadow.c | 2 +- src/namestore/test_namestore_api_lookup_shadow_filter.c | 2 +- src/namestore/test_namestore_api_sqlite.conf | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gnsrecord/gnsrecord_serialization.c b/src/gnsrecord/gnsrecord_serialization.c index a1cfbe984..934d36102 100644 --- a/src/gnsrecord/gnsrecord_serialization.c +++ b/src/gnsrecord/gnsrecord_serialization.c @@ -90,6 +90,9 @@ GNUNET_GNSRECORD_records_get_size (unsigned int rd_count, { size_t ret; + if (0 == rd_count) + return 0; + ret = sizeof (struct NetworkRecord) * rd_count; for (unsigned int i=0;i