[Midnightbsd-cvs] src [9773] trunk/usr.sbin/rtadvd/rtadvd.c: fix occasional SIGSEGV when an interface was added.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Feb 22 00:08:40 EST 2018
Revision: 9773
http://svnweb.midnightbsd.org/src/?rev=9773
Author: laffer1
Date: 2018-02-22 00:08:40 -0500 (Thu, 22 Feb 2018)
Log Message:
-----------
fix occasional SIGSEGV when an interface was added.
Modified Paths:
--------------
trunk/usr.sbin/rtadvd/rtadvd.c
Modified: trunk/usr.sbin/rtadvd/rtadvd.c
===================================================================
--- trunk/usr.sbin/rtadvd/rtadvd.c 2018-02-22 05:07:15 UTC (rev 9772)
+++ trunk/usr.sbin/rtadvd/rtadvd.c 2018-02-22 05:08:40 UTC (rev 9773)
@@ -1008,6 +1008,8 @@
long delay; /* must not be greater than 1000000 */
struct timeval interval, now, min_delay, tm_tmp, *rest;
+ if (ifi->ifi_ra_timer == NULL)
+ return;
/*
* Compute a random delay. If the computed value
* corresponds to a time later than the time the next
More information about the Midnightbsd-cvs
mailing list