tcp_ipv4.c (a80cc20da492d9a00b0851a6632dc03fed5d2e30) | tcp_ipv4.c (354faf0977397cea382e9e9c214fd028377d277b) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * Version: $Id: tcp_ipv4.c,v 1.240 2002/02/01 22:01:04 davem Exp $ --- 924 unchanged lines hidden (view full) --- 933 tp->md5sig_info->entries4--; 934 935 if (tp->md5sig_info->entries4 == 0) { 936 kfree(tp->md5sig_info->keys4); 937 tp->md5sig_info->keys4 = NULL; 938 tp->md5sig_info->alloced4 = 0; 939 } else if (tp->md5sig_info->entries4 != i) { 940 /* Need to do some manipulation */ | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * Version: $Id: tcp_ipv4.c,v 1.240 2002/02/01 22:01:04 davem Exp $ --- 924 unchanged lines hidden (view full) --- 933 tp->md5sig_info->entries4--; 934 935 if (tp->md5sig_info->entries4 == 0) { 936 kfree(tp->md5sig_info->keys4); 937 tp->md5sig_info->keys4 = NULL; 938 tp->md5sig_info->alloced4 = 0; 939 } else if (tp->md5sig_info->entries4 != i) { 940 /* Need to do some manipulation */ |
941 memcpy(&tp->md5sig_info->keys4[i], 942 &tp->md5sig_info->keys4[i+1], 943 (tp->md5sig_info->entries4 - i) * 944 sizeof(struct tcp4_md5sig_key)); | 941 memmove(&tp->md5sig_info->keys4[i], 942 &tp->md5sig_info->keys4[i+1], 943 (tp->md5sig_info->entries4 - i) * 944 sizeof(struct tcp4_md5sig_key)); |
945 } 946 tcp_free_md5sig_pool(); 947 return 0; 948 } 949 } 950 return -ENOENT; 951} 952 --- 1530 unchanged lines hidden --- | 945 } 946 tcp_free_md5sig_pool(); 947 return 0; 948 } 949 } 950 return -ENOENT; 951} 952 --- 1530 unchanged lines hidden --- |