mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not coredump if the packet is too long in the global (non-interface
associated) instance. The result is that the packet is dropped without an indication that smaller MTU is advisable, which is not optimal, but better than a NULL pointer deref. Approved by: re (glebius)
This commit is contained in:
parent
77c7a21036
commit
6481f66b90
1 changed files with 1 additions and 1 deletions
|
|
@ -618,7 +618,7 @@ static void DoGlobal (int fd)
|
|||
|
||||
if (wrote != bytes) {
|
||||
|
||||
if (errno == EMSGSIZE) {
|
||||
if (errno == EMSGSIZE && mip != NULL) {
|
||||
|
||||
if (mip->ifMTU != -1)
|
||||
SendNeedFragIcmp (icmpSock,
|
||||
|
|
|
|||
Loading…
Reference in a new issue