summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-06-16 08:50:14 +0000
committerbms <bms@FreeBSD.org>2004-06-16 08:50:14 +0000
commitff08157f93e9b1cf65e9b36fe0b60c313e93b847 (patch)
treec317ffee7b47e037d6898bfad4c5e6ade3e87c39 /sys/netinet/udp_usrreq.c
parentaa52a5a900bdec01cd64392151f45ae2b913614b (diff)
downloadFreeBSD-src-ff08157f93e9b1cf65e9b36fe0b60c313e93b847.zip
FreeBSD-src-ff08157f93e9b1cf65e9b36fe0b60c313e93b847.tar.gz
Reverse a patch which has no effect on -CURRENT and should probably be
applied directly to -STABLE. Noticed by: iedowse Pointy hat to: bms
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 47d12f8..9c541db 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -837,7 +837,7 @@ udp_output(inp, m, addr, control, td)
M_PREPEND(m, sizeof(struct udpiphdr), M_DONTWAIT);
if (m == 0) {
error = ENOBUFS;
- goto disconnect;
+ goto release;
}
/*
@@ -879,12 +879,6 @@ udp_output(inp, m, addr, control, td)
inp->inp_moptions, inp);
return (error);
-disconnect:
- if (addr) {
- in_pcbdisconnect(inp);
- inp->inp_laddr = laddr;
- }
-
release:
m_freem(m);
return (error);
OpenPOWER on IntegriCloud