]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix '--cipher none --cipher' crash
authorSteffan Karger <steffan.karger@fox-it.com>
Tue, 26 Jul 2016 13:57:13 +0000 (15:57 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 26 Jul 2016 14:55:37 +0000 (16:55 +0200)
commitd1c08ab1365096fdbd02cfb4f9ad97e759f13b82
tree7148a7e3263831615907b5ab17a0fbd372fcd082
parent13f3526a9b05bed63c50c93c5903b0cde0dcc7f4
Fix '--cipher none --cipher' crash

As reported in trac #699, OpenVPN crashes when an "--cipher none" option
is followed by "--cipher" (without arguments).  Fix the crash, and print a
warning to indicate that using --cipher of --auth without an argument is
deprecated.

This is a (partly) backport of the patch I sent for the master branch
yesterday.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1469541433-1671-1-git-send-email-steffan.karger@fox-it.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/12107
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c