Fix spinning on zero length search request (lp:1743321; from 3.14)

This commit is contained in:
Ralph Lange
2018-09-14 11:51:56 +02:00
parent 3bf4e95de8
commit 0556439fa7

View File

@@ -665,6 +665,10 @@ caStatus casDGClient::processDG ()
if ( status != S_cas_success ) {
break;
}
if ( this->in.bytesPresent () > 0 && dgInBytesConsumed == 0 ) {
this->in.removeMsg ( this->in.bytesPresent() );
}
}
return status;
}