Simplified code.
This commit is contained in:
@@ -357,16 +357,12 @@ static bool dlmstp_compare_data_expecting_reply(
|
|||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/* these don't have service choice included */
|
if (request.invoke_id != reply.invoke_id) {
|
||||||
if ((reply.pdu_type == PDU_TYPE_REJECT) ||
|
return false;
|
||||||
(reply.pdu_type == PDU_TYPE_ABORT)) {
|
}
|
||||||
if (request.invoke_id != reply.invoke_id) {
|
/* these services don't have service choice included */
|
||||||
return false;
|
if ((reply.pdu_type != PDU_TYPE_REJECT) &&
|
||||||
}
|
(reply.pdu_type != PDU_TYPE_ABORT)) {
|
||||||
} else {
|
|
||||||
if (request.invoke_id != reply.invoke_id) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (request.service_choice != reply.service_choice) {
|
if (request.service_choice != reply.service_choice) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user