ソースを参照

adding asset to help clang

Stasik0 8 年 前
コミット
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;
         }
     }