]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
routing: fix crash when RTM_CHANGE results in no-op for the multipath
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Sat, 25 Jun 2022 19:32:59 +0000 (19:32 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Sat, 25 Jun 2022 19:35:09 +0000 (19:35 +0000)
commitc260d5cd8e364ad448ba714d9f851976c6f8da51
tree104bd97e81d1aace28c6d06a67284d4e065e4df6
parentbd03f10a6018a68cb1800f6db01b7552c39784bb
routing: fix crash when RTM_CHANGE results in no-op for the multipath
route.

Reporting logic assumed there is always some nhop change for every
 successful modification operation. Explicitly check that the changed
 nexthop indeed exists when reporting back to userland.

MFC after: 2 weeks
Reported by: Claudio Jeker <claudio.jeker@klarasystems.com>
Tested by: Claudio Jeker <claudio.jeker@klarasystems.com>
sys/net/rtsock.c