Browse code

Log pre-handshake packet drops using D_MULTI_DROPPED

We have a debug level packets dropped by the TLS layer - use that for this
packet drop too. This changes this message from 'verb 3' to 'verb 4'
(which should result in less user reports about this almost always
harmless warning).

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20180211101929.4535-1-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg16477.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Steffan Karger authored on 2018/02/11 19:19:29
Showing 1 changed files
... ...
@@ -3361,7 +3361,7 @@ tls_pre_decrypt(struct tls_multi *multi,
3361 3361
                 {
3362 3362
                     if (!ks->crypto_options.key_ctx_bi.initialized)
3363 3363
                     {
3364
-                        msg(D_TLS_DEBUG_LOW,
3364
+                        msg(D_MULTI_DROPPED,
3365 3365
                             "Key %s [%d] not initialized (yet), dropping packet.",
3366 3366
                             print_link_socket_actual(from, &gc), key_id);
3367 3367
                         goto error_lite;