aboutsummaryrefslogtreecommitdiff
path: root/src/gns/w32nsp-resolve.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/w32nsp-resolve.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/w32nsp-resolve.c')
-rw-r--r--src/gns/w32nsp-resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gns/w32nsp-resolve.c b/src/gns/w32nsp-resolve.c
index 2e9e873c1..1de1a3657 100644
--- a/src/gns/w32nsp-resolve.c
+++ b/src/gns/w32nsp-resolve.c
@@ -362,7 +362,7 @@ main (int argc, char **argv)
362 struct hostent *he = malloc (result->lpBlob->cbSize); 362 struct hostent *he = malloc (result->lpBlob->cbSize);
363 if (he != NULL) 363 if (he != NULL)
364 { 364 {
365 memcpy (he, result->lpBlob->pBlobData, result->lpBlob->cbSize); 365 GNUNET_memcpy (he, result->lpBlob->pBlobData, result->lpBlob->cbSize);
366 UnpackHostEnt (he); 366 UnpackHostEnt (he);
367 print_hostent (he); 367 print_hostent (he);
368 free (he); 368 free (he);