Signed-off-by: Vladimir Krivopalov <
vladimir....@gmail.com>
---
net/udp.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/udp.cc b/net/udp.cc
index 06f4092..5e96d76 100644
--- a/net/udp.cc
+++ b/net/udp.cc
@@ -140,7 +140,7 @@ bool ipv4_udp::forward(forward_hash& out_hash_data, packet& p, size_t off)
{
auto uh = p.get_header<udp_hdr>(off);
- if (!uh) {
+ if (uh) {
out_hash_data.push_back(uh->src_port);
out_hash_data.push_back(uh->dst_port);
}
--
2.14.1