From 94347fc22340069ae31f4badf2a4945c5b2d8d94 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 18 Mar 2003 20:39:48 +0000 Subject: [PATCH] fixed undefined channel pointer in context --- src/cas/generic/casStrmClient.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cas/generic/casStrmClient.cc b/src/cas/generic/casStrmClient.cc index 539088809..f268fd5b4 100644 --- a/src/cas/generic/casStrmClient.cc +++ b/src/cas/generic/casStrmClient.cc @@ -1325,6 +1325,7 @@ caStatus casStrmClient::createChanResponse ( // if ( nativeTypeDBR == DBR_ENUM ) { this->ctx.setPV ( pvar.getPV()->pPVI ); + this->ctx.setChannel ( pChan->pChanI ); this->userStartedAsyncIO = false; status = pvar.getPV()->pPVI->updateEnumStringTable ( this->ctx ); if ( this->userStartedAsyncIO ) { @@ -1337,7 +1338,7 @@ caStatus casStrmClient::createChanResponse ( } else if ( status == S_casApp_success ) { status = enumPostponedCreateChanResponse ( - guard, *ctx.getChannel(), hdr, nativeTypeDBR ); + guard, * pChan->pChanI, hdr, nativeTypeDBR ); } else if ( status == S_casApp_asyncCompletion ) { status = S_cas_badParameter; @@ -1350,12 +1351,12 @@ caStatus casStrmClient::createChanResponse ( errlogPrintf ( "To postpone this request please postpone the PC attach IO request." ); errlogPrintf ( "String table cache update did not occur." ); status = enumPostponedCreateChanResponse ( - guard, * ctx.getChannel(), hdr, nativeTypeDBR ); + guard, * pChan->pChanI, hdr, nativeTypeDBR ); } } else { status = enumPostponedCreateChanResponse ( - guard, *pChan->pChanI, hdr, nativeTypeDBR ); + guard, * pChan->pChanI, hdr, nativeTypeDBR ); } if ( status != S_cas_success ) {