Fix compilation with SECURE=0 for linux
@@ -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();
