The array eventnames is of size 3 while the interface_event type may use the indexes 3 or 4.
Signed-off-by: Hans Dedecker <[email protected]> --- interface-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-event.c b/interface-event.c index cfbc15c..3cdfbdb 100644 --- a/interface-event.c +++ b/interface-event.c @@ -30,7 +30,7 @@ static void task_complete(struct uloop_process *proc, int ret); static struct uloop_process task = { .cb = task_complete, }; -static const char * const eventnames[] = {"ifdown", "ifup", "ifupdate"}; +static const char * const eventnames[] = {"ifdown", "ifup", "ifupdate", "free", "reload"}; static void run_cmd(const char *ifname, const char *device, enum interface_event event, -- 1.9.1 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
