Stasik0 лет назад: 8
Родитель
Сommit
0eea0b50de
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/server/ua_securechannel_manager.c

+ 1 - 0
src/server/ua_securechannel_manager.c

@@ -58,6 +58,7 @@ static UA_Boolean purgeFirstChannelWithoutSession(UA_SecureChannelManager *cm) {
         if(LIST_EMPTY(&(entry->channel.sessions))){
             UA_LOG_DEBUG_CHANNEL(cm->server->config.logger, (&entry->channel), "Channel was purged since maxSecureChannels was reached and channel had no session attached");
             removeSecureChannel(cm, entry);
+            UA_assert(entry != LIST_FIRST(&cm->channels));
             return true;
         }
     }