--------------------- PatchSet 4727 Date: 2007/06/13 08:23:25 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Remove unnecessary calls to memcpy. Members: helpers/basic_auth/MSNT/rfcnb-util.c:1.1.30.2->1.1.30.3 Index: squid3/helpers/basic_auth/MSNT/rfcnb-util.c =================================================================== RCS file: /cvsroot/squid-sf//squid3/helpers/basic_auth/MSNT/rfcnb-util.c,v retrieving revision 1.1.30.2 retrieving revision 1.1.30.3 diff -u -r1.1.30.2 -r1.1.30.3 --- squid3/helpers/basic_auth/MSNT/rfcnb-util.c 19 Apr 2005 10:57:53 -0000 1.1.30.2 +++ squid3/helpers/basic_auth/MSNT/rfcnb-util.c 13 Jun 2007 08:23:25 -0000 1.1.30.3 @@ -366,13 +366,11 @@ } else { /* We got a name */ - memcpy((void *) Dest_IP, (void *) hp->h_addr_list[0], sizeof(struct IN_ADDR)); - + Dest_IP->s_addr = ((struct sockaddr_in*)hp->h_addr_list[0])->sin_addr.s_addr; } } else { /* It was an IP address */ - memcpy((void *) Dest_IP, (void *) &addr, sizeof(struct IN_ADDR)); - + Dest_IP->s_addr = addr; } return 0;