diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2019-02-26 16:11:53 -0500 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2019-02-26 16:11:53 -0500 |
commit | 994cdb9b31aaac4d688014cdd1bdf5ff2b1970e1 (patch) | |
tree | d6d20c28488c3877ccb22f12b76b403d619550ec /src | |
parent | 146aa7a46a540cfd85a30f82bcec2783c9801ba7 (diff) | |
download | sdl_core-994cdb9b31aaac4d688014cdd1bdf5ff2b1970e1.tar.gz |
Increase auth_token size according to specfeature/auth_token_protocol_payload
Diffstat (limited to 'src')
-rw-r--r-- | src/components/protocol_handler/src/protocol_handler_impl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc index c09fbfe0d8..083e204ac3 100644 --- a/src/components/protocol_handler/src/protocol_handler_impl.cc +++ b/src/components/protocol_handler/src/protocol_handler_impl.cc @@ -418,8 +418,9 @@ void ProtocolHandlerImpl::SendStartSessionAck( sync_primitives::AutoLock lock(auth_token_map_lock_); auto it = auth_token_map_.find(policy_app_id); if (it != auth_token_map_.end()) { - char auth_token[256]; - strncpy(auth_token, it->second.c_str(), 255); + char auth_token[65536]; + strncpy(auth_token, it->second.c_str(), 65535); + auth_token[sizeof(auth_token) - 1] = '\0'; bson_object_put_string(¶ms, strings::auth_token, auth_token); } } |