--------------------- PatchSet 4728 Date: 2007/06/13 08:31:20 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Remove more unnecessary calls to memcpy. Members: helpers/ntlm_auth/SMB/smbval/rfcnb-util.c:1.2.8.2->1.2.8.3 Index: squid3/helpers/ntlm_auth/SMB/smbval/rfcnb-util.c =================================================================== RCS file: /cvsroot/squid-sf//squid3/helpers/ntlm_auth/SMB/smbval/rfcnb-util.c,v retrieving revision 1.2.8.2 retrieving revision 1.2.8.3 diff -u -r1.2.8.2 -r1.2.8.3 --- squid3/helpers/ntlm_auth/SMB/smbval/rfcnb-util.c 19 Apr 2005 10:57:54 -0000 1.2.8.2 +++ squid3/helpers/ntlm_auth/SMB/smbval/rfcnb-util.c 13 Jun 2007 08:31:20 -0000 1.2.8.3 @@ -341,13 +341,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;