Selaa lähdekoodia

fix a clang analyzer issue

Julius Pfrommer 8 vuotta sitten
vanhempi
commit
3288ccf667
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/server/ua_server_binary.c

+ 2 - 0
src/server/ua_server_binary.c

@@ -505,6 +505,8 @@ static void
 UA_Server_processSecureChannelMessage(UA_Server *server, UA_SecureChannel *channel,
                                       UA_MessageType messagetype, UA_UInt32 requestId,
                                       const UA_ByteString *message) {
+    UA_assert(channel);
+    UA_assert(channel->connection);
     switch(messagetype) {
     case UA_MESSAGETYPE_HEL:
         UA_LOG_TRACE_CHANNEL(server->config.logger, channel,