Commit 753a5f170d6ea9dd577067721a0ccbce69fc191c

Authored by Jan Kiszka
Committed by Anthony Liguori
1 parent c18a2c36

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 <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 0 additions and 2 deletions
slirp/udp.c
... ... @@ -173,8 +173,6 @@ udp_input(register struct mbuf *m, int iphlen)
173 173 for (tmp = udb.so_next; tmp != &udb; tmp = tmp->so_next) {
174 174 if (tmp->so_lport == uh->uh_sport &&
175 175 tmp->so_laddr.s_addr == ip->ip_src.s_addr) {
176   - tmp->so_faddr.s_addr = ip->ip_dst.s_addr;
177   - tmp->so_fport = uh->uh_dport;
178 176 so = tmp;
179 177 break;
180 178 }
... ...