Commit 423bcd34 authored by Jozef Kralik's avatar Jozef Kralik Committed by Kishen Maloor

Fix compilation with SECURE=0 for linux

parent 82c06da2
Pipeline #180 passed with stage
in 47 seconds
...@@ -645,7 +645,9 @@ process_interface_change_event(void) ...@@ -645,7 +645,9 @@ process_interface_change_event(void)
} }
if (if_state_changed) { if (if_state_changed) {
#ifdef OC_SECURITY
oc_close_all_tls_sessions(); oc_close_all_tls_sessions();
#endif /* OC_SECURITY */
for (i = 0; i < num_devices; i++) { for (i = 0; i < num_devices; i++) {
ip_context_t *dev = get_ip_context_for_device(i); ip_context_t *dev = get_ip_context_for_device(i);
oc_network_event_handler_mutex_lock(); oc_network_event_handler_mutex_lock();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment