diff --git a/src/cas/generic/casDGClient.cc b/src/cas/generic/casDGClient.cc index 135db94f9..8c0fdaeba 100644 --- a/src/cas/generic/casDGClient.cc +++ b/src/cas/generic/casDGClient.cc @@ -480,6 +480,9 @@ caStatus casDGClient::asyncSearchResponse ( const caNetAddr & outAddr, return S_cas_sendBlocked; } + // insert version header at the start of the reply message + this->sendVersion (); + cadg * pRespHdr = reinterpret_cast ( pRaw ); stat = this->searchResponse ( msg, retVal ); @@ -522,6 +525,9 @@ caStatus casDGClient::processDG () status = S_cas_sendBlocked; break; } + + // insert version header at the start of the reply message + this->sendVersion (); cadg *pRespHdr = reinterpret_cast (pRaw); @@ -543,9 +549,6 @@ caStatus casDGClient::processDG () this->seqNoOfReq = 0; this->minor_version_number = 0; - // insert version header at the start of the reply message - this->sendVersion (); - status = this->processMsg (); dgInBytesConsumed = this->in.popCtx ( inctx ); if (dgInBytesConsumed>0) {