File: 64-32bit-comparison.patch

package info (click to toggle)
parprouted 0.70-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 200 kB
  • sloc: ansic: 1,355; makefile: 60
file content (11 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
--- a/arp.c
+++ b/arp.c
@@ -279,7 +279,7 @@ void rq_process(struct in_addr ipaddr, i
     /* Walk through the list */
     
     while (cur_entry != NULL) {
-	if ( ipaddr.s_addr == *((long *) cur_entry->req_frame.arp.arp_tpa) && ifindex != cur_entry->req_if.sll_ifindex ) {
+	if ( ipaddr.s_addr == ((struct in_addr *) cur_entry->req_frame.arp.arp_tpa)->s_addr && ifindex != cur_entry->req_if.sll_ifindex ) {
 
 	    if (debug)
 	        printf("Found %s in request queue\n", inet_ntoa(ipaddr));