]> git.ipfire.org Git - thirdparty/openvpn.git/commit
add support for %lu in argv_printf and prevent ASSERT
authorAntonio Quartulli <a@unstable.cc>
Sat, 23 Jun 2018 02:11:47 +0000 (10:11 +0800)
committerGert Doering <gert@greenie.muc.de>
Sat, 23 Jun 2018 12:00:34 +0000 (14:00 +0200)
commit61dcf1513d69ddf1261402744496436923ec14bb
tree30ae073aab429128193bd64c2cea93e853817692
parent9e1800da5782be2b23202997d40ea37a1dfcd4e9
add support for %lu in argv_printf and prevent ASSERT

%lu is not supported by our tiny argv_printf implementation, therefore
it will trigger an ASSERT() when parsing it at route.c:1638.

Add support for '%lu' in argv_print() and prevent the ASSERT from being
triggered.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20180623021147.22792-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17115.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit e38d3a004195f33c5c04fe7c04db5d66c53241bc)
src/openvpn/argv.c