mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
16d291e2c9
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: Hans Dedecker <dedeckeh@gmail.com> SVN-Revision: 45264
12 lines
318 B
Diff
12 lines
318 B
Diff
--- 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;
|
|
|