From 423bcd34fbaae4866fa9cf6adb5e0103066ec261 Mon Sep 17 00:00:00 2001 From: Jozef Kralik Date: Thu, 23 Jan 2020 12:17:05 -0800 Subject: [PATCH] Fix compilation with SECURE=0 for linux --- port/linux/ipadapter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/port/linux/ipadapter.c b/port/linux/ipadapter.c index 54397a78a..1e385dac6 100644 --- a/port/linux/ipadapter.c +++ b/port/linux/ipadapter.c @@ -645,7 +645,9 @@ process_interface_change_event(void) } if (if_state_changed) { +#ifdef OC_SECURITY oc_close_all_tls_sessions(); +#endif /* OC_SECURITY */ for (i = 0; i < num_devices; i++) { ip_context_t *dev = get_ip_context_for_device(i); oc_network_event_handler_mutex_lock(); -- GitLab