Skip to content

Commit cb2a80b

Browse files
committed
Guard a bit of DTLS code.
1 parent da06e1a commit cb2a80b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/internal.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,10 +1555,12 @@ static int ImportOptions(WOLFSSL* ssl, const byte* exp, word32 len, byte ver,
15551555
idx++;
15561556
#endif
15571557
}
1558-
1558+
#ifdef WOLFSSL_DTLS
15591559
/* If we had a connection established, let's assume that we can act
15601560
* statefully */
15611561
options->dtlsStateful = 1;
1562+
#endif
1563+
15621564
if (ver > WOLFSSL_EXPORT_VERSION_4) {
15631565
#ifdef WOLFSSL_DTLS
15641566
options->dtlsStateful = exp[idx++];

0 commit comments

Comments
 (0)