]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
For KAME we need to fix the zeroing out of a couple of bytes. The wrong variable...
authorDanny Mayer <mayer@ntp.org>
Thu, 4 Dec 2003 03:24:47 +0000 (22:24 -0500)
committerDanny Mayer <mayer@ntp.org>
Thu, 4 Dec 2003 03:24:47 +0000 (22:24 -0500)
bk: 3fcea8ffrOBlrGRsNHFZOja83baNUg

libisc/interfaceiter.c

index 1843bb18287a1608f466703512021be474fdadae..c69a01bab15c4c297016e33112423f7fdb235eab 100644 (file)
@@ -98,8 +98,8 @@ get_scopeid(unsigned int family, struct sockaddr *src) {
                u_int8_t *p;
                p = &((struct sockaddr_in6 *)src)->sin6_addr.s6_addr[0];
                scopeid = ((u_int16_t)p[2] << 8) | p[3];
-               dst->type.in6.s6_addr[2] = 0;
-               dst->type.in6.s6_addr[3] = 0;
+               &((struct sockaddr_in6 *)src)->sin6_addr.s6_addr[2] = 0;
+               &((struct sockaddr_in6 *)src)->sin6_addr.s6_addr[3] = 0;
        } else
                scopeid = 0;
 #else