From d744b06a289c362a3e158332a820e9ba31c010ab Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 27 Feb 2017 11:07:17 -0500 Subject: [PATCH] libca: findOrCreateVirtCircuit() can return w/ piiu==NULL --- src/ca/cac.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ca/cac.cpp b/src/ca/cac.cpp index 60f737ad7..3c19e09b9 100644 --- a/src/ca/cac.cpp +++ b/src/ca/cac.cpp @@ -635,11 +635,13 @@ void cac::transferChanToVirtCircuit ( // must occur before moving to new iiu pChan->getPIIU(guard)->uninstallChanDueToSuccessfulSearchResponse ( guard, *pChan, currentTime ); - piiu->installChannel ( - guard, *pChan, sid, typeCode, count ); + if ( piiu ) { + piiu->installChannel ( + guard, *pChan, sid, typeCode, count ); - if ( newIIU ) { - piiu->start ( guard ); + if ( newIIU ) { + piiu->start ( guard ); + } } }