cas: don't spin on zero-length search requests

(fix lp:1743321)
This commit is contained in:
Ralph Lange
2018-06-07 11:32:16 +02:00
parent b558bd9b16
commit e459e8bdd4

View File

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