fixed missing version/sequence number header in asynchronous search response

This commit is contained in:
Jeff Hill
2002-08-05 22:57:12 +00:00
parent bc097f5b7f
commit d39580e6ee
+6 -3
View File
@@ -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<cadg *> ( 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 <cadg *> (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) {