Projet

Général

Profil

Télécharger (483 octets) Statistiques
| Branche: | Révision:

univnautes-tools / patches / stable / 10 / ip_dstchng_fix.diff @ 4ab3b90b

1
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
2
index 83ef2b7..5a827db 100644
3
--- a/sys/netinet/ip_input.c
4
+++ b/sys/netinet/ip_input.c
5
@@ -507,8 +507,7 @@ tooshort:
6
 		goto ours;
7
 	}
8
 	if (m->m_flags & M_IP_NEXTHOP) {
9
-		dchg = (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL);
10
-		if (dchg != 0) {
11
+		if (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL) {
12
 			/*
13
 			 * Directly ship the packet on.  This allows
14
 			 * forwarding packets originally destined to us
(25-25/67)