From 268129c9e403dc7041ec8491d1ac618c08005b8d Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:27 +0200 Subject: slirp: Drop redundant lines from udp_input The socket faddr/fport is already updated a few lines below, so these are completely redundant. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- udp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'udp.c') diff --git a/udp.c b/udp.c index 90856b6..09eb5ff 100644 --- a/udp.c +++ b/udp.c @@ -171,8 +171,6 @@ void udp_input(register struct mbuf *m, int iphlen) for (tmp = udb.so_next; tmp != &udb; tmp = tmp->so_next) { if (tmp->so_lport == uh->uh_sport && tmp->so_laddr.s_addr == ip->ip_src.s_addr) { - tmp->so_faddr.s_addr = ip->ip_dst.s_addr; - tmp->so_fport = uh->uh_dport; so = tmp; break; } -- cgit v1.1