]> mj.ucw.cz Git - bouncer.git/commitdiff
Fixed a silly bug
authorMartin Mares <mj@ucw.cz>
Sat, 5 Nov 2016 21:18:52 +0000 (22:18 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 5 Nov 2016 21:18:52 +0000 (22:18 +0100)
bouncer.c

index a74e5496c3ead43e3ccc21461157b82ce00ae816..4c035900799d2f957ee3ada2e00fac7e2935f9a7 100644 (file)
--- a/bouncer.c
+++ b/bouncer.c
@@ -77,7 +77,7 @@ static bool addr_parse(struct addr *addr, const char *src)
     }
   else if (inet_pton(AF_INET6, src, &a6))
     {
-      memcpy(&addr, &a6, 16);
+      memcpy(addr, &a6, 16);
       return 1;
     }
   else