packages/net/xl2tpd/patches/0001-xl2tpd-control-fix-out-of-bound-access.patch
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00

24 lines
852 B
Diff

From f94ffac18ddfe72b00ec849a34c71d6bc5bcb767 Mon Sep 17 00:00:00 2001
From: Yousong Zhou <yszhou4tech@gmail.com>
Date: Thu, 12 Nov 2020 14:31:23 +0800
Subject: [PATCH] xl2tpd-control: fix out-of-bound access
It can cause segfault when presented with unknown command name
Fixes 90884c62 ("xl2tpd-control refactoring")
---
xl2tpd-control.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/xl2tpd-control.c
+++ b/xl2tpd-control.c
@@ -83,7 +83,8 @@ struct command_t commands[] = {
{"available", &command_available, TUNNEL_NOT_REQUIRED},
{"add-lns", &command_add_lns, TUNNEL_REQUIRED},
{"status-lns", &command_status_lns, TUNNEL_REQUIRED},
- {"remove-lns", &command_remove_lns, TUNNEL_REQUIRED}
+ {"remove-lns", &command_remove_lns, TUNNEL_REQUIRED},
+ {},
};
void usage()