summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-08-09 12:53:53 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-08-09 12:53:53 +0200
commitb7cd1917589e6a607f5eb01b5f85f570f9ce2afb (patch)
treec0779053a23ec4af1847b8cbec05cb4c40e16301 /src
parent576fce82f4275975e03ab6a114a1f5b86cdf8b9c (diff)
-more coverity
Diffstat (limited to 'src')
-rw-r--r--src/gns/gnunet-gns-proxy.c2
-rw-r--r--src/namecache/namecache_api.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index 5e3f9d6df..ec9fb12ae 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -1264,7 +1264,7 @@ curl_check_hdr (void *buffer,
}
GNUNET_free (leho_host);
}
- if (0 == strcasecmp (MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
+ else if (0 == strcasecmp (MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
hdr_type))
{
char *leho_host;
diff --git a/src/namecache/namecache_api.c b/src/namecache/namecache_api.c
index fdbf142a7..70c848037 100644
--- a/src/namecache/namecache_api.c
+++ b/src/namecache/namecache_api.c
@@ -228,6 +228,7 @@ handle_lookup_block_response (void *cls,
char buf[size] GNUNET_ALIGN;
struct GNUNET_GNSRECORD_Block *block;
+ memset (buf, 0, size);
block = (struct GNUNET_GNSRECORD_Block *) buf;
GNUNET_memcpy (block,
&msg[1],