mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
libnetworking: Disconnect after mbuf shortage
The missing disconnect left the socket in an unusable state. Each send request resulted in an EISCONN error.
This commit is contained in:
committed by
Gedare Bloom
parent
0e75aae563
commit
45f9cd01f5
@@ -399,8 +399,11 @@ udp_output(struct inpcb *inp, struct mbuf *m, struct mbuf *addr,
|
||||
M_PREPEND(m, sizeof(struct udpiphdr), M_DONTWAIT);
|
||||
if (m == 0) {
|
||||
error = ENOBUFS;
|
||||
if (addr)
|
||||
if (addr) {
|
||||
in_pcbdisconnect(inp);
|
||||
inp->inp_laddr = laddr;
|
||||
splx(s);
|
||||
}
|
||||
goto release;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user