diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2020-02-10 10:18:41 -0500 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2020-02-10 10:18:41 -0500 |
commit | b28a10d21f08d78a733a37b51242a206a65a707b (patch) | |
tree | aec2e4cde1f7e3d35583e852c109bbdb9d93cafe | |
parent | 3dfaccc21d83621eff5d122f58bd3709fc40737d (diff) | |
download | sdl_core-b28a10d21f08d78a733a37b51242a206a65a707b.tar.gz |
Properly populate rejectedParams for EndServiceNACKfix/hash_id_rejected_params
-rw-r--r-- | src/components/protocol_handler/src/protocol_handler_impl.cc | 3 |
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, |