diff options
author | Dmitriy Eshenko <dmitriy.eshenko@accel-ppp.org> | 2023-06-30 09:07:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 09:07:01 +0300 |
commit | 981f2399a8f61256f866a87f50c3b4a8aa77847c (patch) | |
tree | 05594d304ca681ec3d2a9f264d6ffd4e2c05179f /accel-pppd/ctrl/ipoe/ipoe.c | |
parent | 4ffeb255b635d0bd7923c600cb07f7d646b7c3d9 (diff) | |
parent | 083a51f43ae30cd7f1ad1cc9977ca4bedfc35585 (diff) | |
download | accel-ppp-981f2399a8f61256f866a87f50c3b4a8aa77847c.tar.gz accel-ppp-981f2399a8f61256f866a87f50c3b4a8aa77847c.zip |
Merge pull request #91 from louis-6wind/fix-link-selection-mem-violation
ipoe: fix memory access violation with unset link-selection
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 4a4f95d..dde3f21 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -4006,6 +4006,8 @@ static void load_config(void) opt = conf_get_opt("ipoe", "link-selection"); if (opt && inet_pton(AF_INET, opt, &dummy) > 0) conf_link_selection = opt; + else + conf_link_selection = NULL; opt = conf_get_opt("ipoe", "ipv6"); if (opt) |