]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove explicit setting of peer_id to false
authorArne Schwabe <arne@rfc2549.org>
Fri, 23 Oct 2020 11:34:30 +0000 (13:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 24 Oct 2020 19:59:02 +0000 (21:59 +0200)
Almost everywhere in OpenVPN we rely on zero initialisation to
initialise all bool attributes to false.

ret is cleared by ALLOC_OBJ_CLEAR(ret, struct tls_multi);

Having this one variable treated different is a bit confusing.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20201023113431.26691-4-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21218.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c

index 97e2c61947dd93d981be0d8b1442fa3101e10a8a..53dad9ffaf1cd8c63c26a4fb348dcd955ef76814 100644 (file)
@@ -1216,9 +1216,6 @@ tls_multi_init(struct tls_options *tls_options)
     ret->key_scan[1] = &ret->session[TM_ACTIVE].key[KS_LAME_DUCK];
     ret->key_scan[2] = &ret->session[TM_LAME_DUCK].key[KS_LAME_DUCK];
 
-    /* By default not use P_DATA_V2 */
-    ret->use_peer_id = false;
-
     return ret;
 }