mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
tcp6_ctlinput() doesn't pass MTU value to in6_pcbnotify().
Check cmdarg isn't NULL before dereference, this check was in the ip6_notify_pmtu() before r279588. Reported by: Florian Smeets MFC after: 1 week
This commit is contained in:
parent
76b3c718be
commit
fd8dd3a6d7
1 changed files with 1 additions and 1 deletions
|
|
@ -645,7 +645,7 @@ in6_pcbnotify(struct inpcbinfo *pcbinfo, struct sockaddr *dst,
|
|||
* know the value, notify.
|
||||
* XXX: should we avoid to notify the value to TCP sockets?
|
||||
*/
|
||||
if (cmd == PRC_MSGSIZE)
|
||||
if (cmd == PRC_MSGSIZE && cmdarg != NULL)
|
||||
ip6_notify_pmtu(inp, (struct sockaddr_in6 *)dst,
|
||||
*(u_int32_t *)cmdarg);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue