From 28fe20b38463e53f31b280a2c0d3cb68699b4adc Mon Sep 17 00:00:00 2001 From: ttimo Date: Mon, 14 Nov 2022 14:07:56 -0600 Subject: [PATCH] fix crash in release - that bug has been in forever? does this show up now because of the compiler/platform upgrade? --- libs/synapse/synapse.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/synapse/synapse.cpp b/libs/synapse/synapse.cpp index 9a527c19..1adf6316 100644 --- a/libs/synapse/synapse.cpp +++ b/libs/synapse/synapse.cpp @@ -403,13 +403,12 @@ void CSynapseServer::PushRequired( CSynapseClient *pClient ){ std::list::iterator iClientSlot; for ( iClientSlot = mClients.begin(); iClientSlot != mClients.end(); iClientSlot++ ) { - CSynapseClient *pScanClient = ( *iClientSlot ). - mpClient; + CSynapseClient *pScanClient = ( *iClientSlot ).mpClient; int j,jmax = pScanClient->GetAPICount(); for ( j = 0; j < jmax; j++ ) { APIDescriptor_t *pAPI = pScanClient->GetAPIDescriptor( j ); - if ( pAPI->mType == SYN_PROVIDE ) { + if ( pAPI != NULL && pAPI->mType == SYN_PROVIDE ) { if ( pManager->MatchAPI( pAPI->major_name, pAPI->minor_name ) ) { /*! we are going to want to load this one * NOTE TTimo: what if this can not be resolved in the end?