aboutsummaryrefslogtreecommitdiff
path: root/src/nat
diff options
context:
space:
mode:
authorMoon <moon@140774ce-b5e7-0310-ab8b-a85725594a96>2009-10-25 12:22:25 +0000
committerMoon <moon@140774ce-b5e7-0310-ab8b-a85725594a96>2009-10-25 12:22:25 +0000
commit930b614d5d8907f7f9499427e74457cd16f620a2 (patch)
tree2ea2f33d448c252f56f975e260a87f9e2b8d49f0 /src/nat
parenteb3a6ed76cec19bc42d31a416fc9a87863cfe1ad (diff)
downloadgnunet-930b614d5d8907f7f9499427e74457cd16f620a2.tar.gz
gnunet-930b614d5d8907f7f9499427e74457cd16f620a2.zip
fix copying in6_addr
Diffstat (limited to 'src/nat')
-rw-r--r--src/nat/libnatpmp/getgateway.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nat/libnatpmp/getgateway.c b/src/nat/libnatpmp/getgateway.c
index 919aee65f..4ac5ace0e 100644
--- a/src/nat/libnatpmp/getgateway.c
+++ b/src/nat/libnatpmp/getgateway.c
@@ -347,7 +347,7 @@ getdefaultgateway (int *af, u_int8_t addr[16])
347 } 347 }
348 else if (gate != NULL && gate->sa_family == AF_INET6) 348 else if (gate != NULL && gate->sa_family == AF_INET6)
349 { 349 {
350 *addr = ((struct sockaddr_in6 *) gate)->sin6_addr.s6_addr; 350 memcpy (addr, ((struct sockaddr_in6 *) gate)->sin6_addr.s6_addr, 16 * sizeof (u_int8_t));
351 *af = AF_INET6; 351 *af = AF_INET6;
352 return SUCCESS; 352 return SUCCESS;
353 } 353 }