Merge pull request #1851 from dgarske/lighttpd_fix

Lighttpd fixes
This commit is contained in:
JacobBarthelmeh
2018-09-26 13:24:16 -06:00
committed by GitHub
3 changed files with 9 additions and 3 deletions

View File

@@ -3160,7 +3160,7 @@ then
fi
fi
if test "$ENABLED_NGINX" = "yes"|| test "x$ENABLED_HAPROXY" = "xyes"
if test "$ENABLED_NGINX" = "yes"|| test "x$ENABLED_HAPROXY" = "xyes" || test "x$ENABLED_LIGHTY" = "xyes"
then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALWAYS_VERIFY_CB"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALWAYS_KEEP_SNI"

View File

@@ -18391,6 +18391,11 @@ static void test_wolfSSL_ERR_put_error(void)
/* Empty and free up all error nodes */
ERR_clear_error();
/* Verify all nodes are cleared */
ERR_put_error(0,SYS_F_ACCEPT, 0, "this file", 0);
ERR_clear_error();
AssertIntEQ(ERR_get_error_line(&file, &line), 0);
printf(resultFmt, passed);
#endif
}

View File

@@ -677,8 +677,9 @@ void wc_ClearErrorNodes(void)
}
}
wc_errors = NULL;
wc_last_node = NULL;
wc_errors = NULL;
wc_last_node = NULL;
wc_current_node = NULL;
wc_UnLockMutex(&debug_mutex);
#endif /* DEBUG_WOLFSSL || WOLFSSL_NGINX */
}