net: if: IPv6 RS network interface check invalid
The network interface check was invalid when IPv6 Router Solicitation message was timeout and interface was not found. This is highly unlikely but needs to be checked properly. Fixes #27145 Coverity-CID: 211511 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
73c50dc0bd
commit
5390b6ee3b
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ static void rs_timeout(struct k_work *work)
|
|||
}
|
||||
}
|
||||
|
||||
if (!iface) {
|
||||
if (iface) {
|
||||
NET_DBG("RS no respond iface %p count %d",
|
||||
iface, ipv6->rs_count);
|
||||
if (ipv6->rs_count < RS_COUNT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue