summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2020-02-10 10:18:41 -0500
committerjacobkeeler <jacob.keeler@livioradio.com>2020-02-10 10:18:41 -0500
commitb28a10d21f08d78a733a37b51242a206a65a707b (patch)
treeaec2e4cde1f7e3d35583e852c109bbdb9d93cafe
parent3dfaccc21d83621eff5d122f58bd3709fc40737d (diff)
downloadsdl_core-fix/hash_id_rejected_params.tar.gz
Properly populate rejectedParams for EndServiceNACKfix/hash_id_rejected_params
-rw-r--r--src/components/protocol_handler/src/protocol_handler_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc
index 3b216c273c..04c1529573 100644
--- a/src/components/protocol_handler/src/protocol_handler_impl.cc
+++ b/src/components/protocol_handler/src/protocol_handler_impl.cc
@@ -1586,7 +1586,8 @@ RESULT_CODE ProtocolHandlerImpl::HandleControlMessageEndSession(
<< " type.");
if (packet.protocol_version() >= PROTOCOL_VERSION_5) {
std::vector<std::string> rejectedParams;
- if (hash_id == protocol_handler::HASH_ID_WRONG) {
+ if (hash_id == protocol_handler::HASH_ID_WRONG &&
+ packet.service_type() == kRpc) {
rejectedParams.push_back(std::string(strings::hash_id));
}
SendEndSessionNAck(connection_id,