Skip to content
Snippets Groups Projects
Commit 116abc2f authored by blogic's avatar blogic
Browse files

ppp: Fix missing arg argument when using option flag OPT_A2STRVAL


The arg argument is missing to the printer call in the print_option
utility when the option flag OPT_A2STRVAL is set.

Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45264 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 98b2e793
No related branches found
No related tags found
No related merge requests found
--- a/pppd/options.c
+++ b/pppd/options.c
@@ -1013,7 +1013,7 @@ print_option(opt, mainopt, printer, arg)
p = (char *) opt->addr2;
if ((opt->flags & OPT_STATIC) == 0)
p = *(char **)p;
- printer("%q", p);
+ printer(arg, "%q", p);
} else if (opt->flags & OPT_A2LIST) {
struct option_value *ovp;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment