diff --git a/src/tls13.c b/src/tls13.c index e2d058019..cd4762b47 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -9127,7 +9127,7 @@ static int SendTls13NewSessionTicket(WOLFSSL* ssl) ssl->session->ticketNonce.len = DEF_TICKET_NONCE_SZ; ssl->session->ticketNonce.data[0] = 0; } - else + else #ifdef WOLFSSL_ASYNC_CRYPT if (ssl->error != WC_PENDING_E) #endif diff --git a/src/wolfio.c b/src/wolfio.c index cc7f40129..8e4d9237e 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -377,7 +377,7 @@ static int isDGramSock(int sfd) int type = 0; /* optvalue 'type' is of size int */ XSOCKLENT length = (XSOCKLENT)sizeof(int); - + if (getsockopt(sfd, SOL_SOCKET, SO_TYPE, &type, &length) == 0 && type != SOCK_DGRAM) { return 0;