aboutsummaryrefslogtreecommitdiffstats
path: root/api/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'api/logger.c')
-rw-r--r--api/logger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/logger.c b/api/logger.c
index 303608a..c954f6c 100644
--- a/api/logger.c
+++ b/api/logger.c
@@ -19,6 +19,8 @@ WINTUN_LOGGER_CALLBACK_FUNC Logger = NopLogger;
void CALLBACK
WintunSetLogger(_In_ WINTUN_LOGGER_CALLBACK_FUNC NewLogger)
{
+ if (!NewLogger)
+ NewLogger = NopLogger;
Logger = NewLogger;
}