]> git.proxmox.com Git - qemu.git/commitdiff
slirp: Drop redundant lines from udp_input
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 24 Jun 2009 12:42:27 +0000 (14:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jun 2009 13:52:44 +0000 (08:52 -0500)
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>
slirp/udp.c

index 11e78cddd5cf89b2c94e5fcda9d98c196c599451..ba9d5c92baa837dbfbf09a3a9c26910c0cc7aa8e 100644 (file)
@@ -173,8 +173,6 @@ 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;
                        }