projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7bd34d
)
-fix memcpy
author
Schanzenbach, Martin
<mschanzenbach@posteo.de>
Fri, 2 Dec 2016 14:13:38 +0000
(15:13 +0100)
committer
Schanzenbach, Martin
<mschanzenbach@posteo.de>
Fri, 2 Dec 2016 14:13:38 +0000
(15:13 +0100)
src/gns/nss/nss_gns.c
patch
|
blob
|
history
diff --git
a/src/gns/nss/nss_gns.c
b/src/gns/nss/nss_gns.c
index 3e1d5971284b24876029a3f889b46fd02ffbba78..31435cf9588a45490e6929ef7e12e79d77545ed6 100644
(file)
--- 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;