Explorar o código

adding asset to help clang

Stasik0 %!s(int64=8) %!d(string=hai) anos
pai
achega
0eea0b50de
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
         }
     }