From: Nikos Mavrogiannopoulos Date: Thu, 17 Nov 2011 08:55:37 +0000 (+0100) Subject: count all discarded packets as dropped. X-Git-Tag: gnutls_3_0_9~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14f2c54c4bcab1d2aa916bbc50f85a6a458b258c;p=thirdparty%2Fgnutls.git count all discarded packets as dropped. --- diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c index 4ff295154f..6c2ac56106 100644 --- a/lib/gnutls_record.c +++ b/lib/gnutls_record.c @@ -1088,6 +1088,7 @@ discard: sanity_check_error: if (IS_DTLS(session)) { + session->internals.dtls.packets_dropped++; _gnutls_audit_log(session, "Discarded message[%u] due to invalid decryption\n", (unsigned int)_gnutls_uint64touint32 (packet_sequence)); ret = gnutls_assert_val(GNUTLS_E_AGAIN);