gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: -fix memcpy


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: -fix memcpy
Date: Fri, 02 Dec 2016 15:13:48 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new f88d55e  -fix memcpy
f88d55e is described below

commit f88d55e43f3d3a4468c2faa0621044ad17594e5f
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri Dec 2 15:13:38 2016 +0100

    -fix memcpy
---
 src/gns/nss/nss_gns.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gns/nss/nss_gns.c b/src/gns/nss/nss_gns.c
index 3e1d597..31435cf 100644
--- a/src/gns/nss/nss_gns.c
+++ b/src/gns/nss/nss_gns.c
@@ -183,7 +183,8 @@ enum nss_status _nss_gns_gethostbyname2_r(
     /* Addresses */
     astart = idx;
     l = u.count*address_length;
-    GNUNET_memcpy(buffer+astart, &u.data, l);
+    if (0 != l)
+      memcpy(buffer+astart, &u.data, l);
     /* address_length is a multiple of 32bits, so idx is still aligned
      * correctly */
     idx += l;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]