]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Do not try to establish DTLS on reconnect if it wasn't established before
authorNikolay Martynov <mar.kolya@gmail.com>
Thu, 11 May 2017 03:02:59 +0000 (23:02 -0400)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 14 May 2017 16:08:42 +0000 (17:08 +0100)
commite4221aa827bcd36617f18311a1cb3d0af0c7bc49
tree294594e9042337838dd968760d25e3c61828cf35
parentffee28a178efae4c27f997337fabd26fcffd2f8b
Do not try to establish DTLS on reconnect if it wasn't established before

Currently when TCP SSL fails reconnect attempt happens. This attempts tries to establish DTLS connection regadless if it existed before. Code ends up in infinite loop doing that.
This changes fixes this by disabling DTLS at startup if DTLS connection cannot be established.
Also change ESP handling code to not reenable DTLS on ESP close.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
dtls.c
esp.c
main.c