mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When allocating the IPv6 header to stick in front of raw packet being
sent via a raw IPv6 socket, use M_DONTWAIT not M_TRYWAIT, as we're holding the raw pcb mutex. Reported, tested by: kuriyama
This commit is contained in:
parent
849112666a
commit
8a0c4da871
1 changed files with 5 additions and 1 deletions
|
|
@ -377,7 +377,11 @@ rip6_output(m, va_alist)
|
|||
code = icmp6->icmp6_code;
|
||||
}
|
||||
|
||||
M_PREPEND(m, sizeof(*ip6), M_TRYWAIT);
|
||||
M_PREPEND(m, sizeof(*ip6), M_DONTWAIT);
|
||||
if (m == NULL) {
|
||||
error = ENOBUFS;
|
||||
goto bad;
|
||||
}
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue