Skip to content

Commit 12141ee

Browse files
committed
Revert "Drop C89-only DTLS drop count change"
This reverts commit 59452c3.
1 parent 59452c3 commit 12141ee

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

native/com_wolfssl_WolfSSLSession.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,11 +2761,11 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLSession_sendHrrCookie
27612761
JNIEXPORT jlong JNICALL Java_com_wolfssl_WolfSSLSession_getDtlsMacDropCount
27622762
(JNIEnv* jenv, jobject jcl, jlong sslPtr)
27632763
{
2764+
word32 dropCount = 0;
2765+
27642766
(void)jenv;
27652767
(void)jcl;
27662768
(void)sslPtr;
2767-
2768-
word32 dropCount = 0;
27692769
#if defined(WOLFSSL_DTLS) && defined(WOLFSSL_DTLS_DROP_STATS)
27702770
int ret = 0;
27712771
WOLFSSL* ssl = (WOLFSSL*)(uintptr_t)sslPtr;
@@ -2782,11 +2782,11 @@ JNIEXPORT jlong JNICALL Java_com_wolfssl_WolfSSLSession_getDtlsMacDropCount
27822782
JNIEXPORT jlong JNICALL Java_com_wolfssl_WolfSSLSession_getDtlsReplayDropCount
27832783
(JNIEnv* jenv, jobject jcl, jlong sslPtr)
27842784
{
2785+
word32 dropCount = 0;
2786+
27852787
(void)jenv;
27862788
(void)jcl;
27872789
(void)sslPtr;
2788-
2789-
word32 dropCount = 0;
27902790
#if defined(WOLFSSL_DTLS) && defined(WOLFSSL_DTLS_DROP_STATS)
27912791
int ret = 0;
27922792
WOLFSSL* ssl = (WOLFSSL*)(uintptr_t)sslPtr;

0 commit comments

Comments
 (0)