aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-08 17:20:23 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-08 17:20:23 +0000
commitd8c53b12a818ff7cf82d06a1a69c395bdef85ee6 (patch)
tree0ebb0db416c157fcfde51a941185819dd12d51fd /src/gns/gns_api.c
parent5184c17d32a39c928c2a0fec3ee1ad098bbaa562 (diff)
downloadgnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.tar.gz
gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.zip
-avoid calling memcpy() with NULL argument, even if len is 0
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r--src/gns/gns_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index 8f821f715..c45f5bc3d 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -412,7 +412,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
412 lookup_msg->have_key = htons (GNUNET_YES); 412 lookup_msg->have_key = htons (GNUNET_YES);
413 lookup_msg->shorten_key = *shorten_zone_key; 413 lookup_msg->shorten_key = *shorten_zone_key;
414 } 414 }
415 memcpy (&lookup_msg[1], 415 GNUNET_memcpy (&lookup_msg[1],
416 name, 416 name,
417 nlen); 417 nlen);
418 GNUNET_CONTAINER_DLL_insert (handle->lookup_head, 418 GNUNET_CONTAINER_DLL_insert (handle->lookup_head,