aboutsummaryrefslogtreecommitdiff
path: root/src/gns/nss
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/nss
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/nss')
-rw-r--r--src/gns/nss/nss_gns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gns/nss/nss_gns.c b/src/gns/nss/nss_gns.c
index ee9438be7..3e1d59712 100644
--- a/src/gns/nss/nss_gns.c
+++ b/src/gns/nss/nss_gns.c
@@ -183,7 +183,7 @@ enum nss_status _nss_gns_gethostbyname2_r(
183 /* Addresses */ 183 /* Addresses */
184 astart = idx; 184 astart = idx;
185 l = u.count*address_length; 185 l = u.count*address_length;
186 memcpy(buffer+astart, &u.data, l); 186 GNUNET_memcpy(buffer+astart, &u.data, l);
187 /* address_length is a multiple of 32bits, so idx is still aligned 187 /* address_length is a multiple of 32bits, so idx is still aligned
188 * correctly */ 188 * correctly */
189 idx += l; 189 idx += l;