mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
fix github issue #65, don't undef with arg to options.h
This commit is contained in:
@@ -2006,7 +2006,8 @@ for option in $OPTION_FLAGS; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "#undef $noequalsign" >> $OPTION_FILE
|
noarg=`echo $defonly | sed 's/=.*//'`
|
||||||
|
echo "#undef $noarg" >> $OPTION_FILE
|
||||||
echo "#define $noequalsign" >> $OPTION_FILE
|
echo "#define $noequalsign" >> $OPTION_FILE
|
||||||
echo "" >> $OPTION_FILE
|
echo "" >> $OPTION_FILE
|
||||||
else
|
else
|
||||||
|
@@ -6005,7 +6005,8 @@ WOLFSSL_X509_CHAIN* wolfSSL_SESSION_get_peer_chain(WOLFSSL_SESSION* session)
|
|||||||
#ifdef WOLFSSL_SESSION_STATS
|
#ifdef WOLFSSL_SESSION_STATS
|
||||||
|
|
||||||
/* requires session_mutex lock held, SSL_SUCCESS on ok */
|
/* requires session_mutex lock held, SSL_SUCCESS on ok */
|
||||||
static int get_locked_session_stats(word32* active, word32* total, word32* peak){
|
static int get_locked_session_stats(word32* active, word32* total, word32* peak)
|
||||||
|
{
|
||||||
int result = SSL_SUCCESS;
|
int result = SSL_SUCCESS;
|
||||||
int i;
|
int i;
|
||||||
int count;
|
int count;
|
||||||
@@ -6029,7 +6030,7 @@ static int get_locked_session_stats(word32* active, word32* total, word32* peak)
|
|||||||
if (idx < 0)
|
if (idx < 0)
|
||||||
idx = SESSIONS_PER_ROW - 1; /* if back to front previous was end */
|
idx = SESSIONS_PER_ROW - 1; /* if back to front previous was end */
|
||||||
|
|
||||||
for(; count > 0; --count, idx = idx ? idx - 1 : SESSIONS_PER_ROW - 1) {
|
for (; count > 0; --count, idx = idx ? idx - 1 : SESSIONS_PER_ROW - 1) {
|
||||||
if (idx >= SESSIONS_PER_ROW || idx < 0) { /* sanity check */
|
if (idx >= SESSIONS_PER_ROW || idx < 0) { /* sanity check */
|
||||||
WOLFSSL_MSG("Bad idx");
|
WOLFSSL_MSG("Bad idx");
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user