Author: blogic
Date: 2015-04-03 21:06:56 +0200 (Fri, 03 Apr 2015)
New Revision: 45264

Added:
   trunk/package/network/services/ppp/patches/550-fix-printer-args.patch
Log:
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: Hans Dedecker <[email protected]>

Added: trunk/package/network/services/ppp/patches/550-fix-printer-args.patch
===================================================================
--- trunk/package/network/services/ppp/patches/550-fix-printer-args.patch       
                        (rev 0)
+++ trunk/package/network/services/ppp/patches/550-fix-printer-args.patch       
2015-04-03 19:06:56 UTC (rev 45264)
@@ -0,0 +1,11 @@
+--- 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;
+ 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to