summaryrefslogtreecommitdiffhomepage
path: root/interface-event.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-02-01 10:56:24 +0100
committerFelix Fietkau <nbd@openwrt.org>2016-02-01 11:09:57 +0100
commit418f63b98f8cc9a4316f7dce4889400afd6ca3aa (patch)
tree6d977f9da26e089c37fb3b051f2453a5fdd67723 /interface-event.c
parent2bd3327f35266dc284ab309ea5ed2008d8b40374 (diff)
interface-event: Fix possible out of bounds array access
The array eventnames is of size 3 while the interface_event type may use the indexes 3 or 4. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface-event.c')
-rw-r--r--interface-event.c2
1 files changed, 1 insertions, 1 deletions
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,