Commit 4841636a authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by Hideaki Yoshifuji

[IPV4]: Missing ip_rt_put in ip_route_newports.

parent 2f499166
......@@ -170,6 +170,7 @@ static inline int ip_route_newports(struct rtable **rp, u16 sport, u16 dport)
memcpy(&fl, &(*rp)->fl, sizeof(fl));
fl.uli_u.ports.sport = sport;
fl.uli_u.ports.dport = dport;
ip_rt_put(*rp);
*rp = NULL;
return ip_route_output_key(rp, &fl);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment