mirror of
https://github.com/openbsd/src.git
synced 2025-01-04 15:25:38 -08:00
Prevent NULL dereference in ospfd interface departure logic when the
arrival of the same interface has not been observed. ok claudio@
This commit is contained in:
parent
66570633f4
commit
95d3cd23b2
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: kroute.c,v 1.117 2023/03/08 04:43:14 guenther Exp $ */
|
||||
/* $OpenBSD: kroute.c,v 1.118 2025/01/01 13:44:52 anton Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
|
||||
@ -1170,7 +1170,8 @@ if_announce(void *msg)
|
||||
break;
|
||||
case IFAN_DEPARTURE:
|
||||
kif = kif_find(ifan->ifan_index);
|
||||
kif_remove(kif);
|
||||
if (kif != NULL)
|
||||
kif_remove(kif);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user