From: Danny Mayer Date: Thu, 4 Dec 2003 03:24:47 +0000 (-0500) Subject: For KAME we need to fix the zeroing out of a couple of bytes. The wrong variable... X-Git-Tag: NTP_4_2_3~193^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e255770325d7431d9d52bee265ced52e80da45ba;p=thirdparty%2Fntp.git For KAME we need to fix the zeroing out of a couple of bytes. The wrong variable name got used bk: 3fcea8ffrOBlrGRsNHFZOja83baNUg --- diff --git a/libisc/interfaceiter.c b/libisc/interfaceiter.c index 1843bb1828..c69a01bab1 100644 --- a/libisc/interfaceiter.c +++ b/libisc/interfaceiter.c @@ -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