diff options
author | sergeyu <sergeyu@chromium.org> | 2016-01-20 18:26:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-21 02:27:47 +0000 |
commit | eca14927f3e9e925198f70bf7902cc973fb68f18 (patch) | |
tree | c3e6758bb6a14601474ab008f135f9b181331101 /remoting/protocol | |
parent | 64c3ef83444b5ab41adfbe6c4854f0e758dde918 (diff) | |
download | chromium_src-eca14927f3e9e925198f70bf7902cc973fb68f18.zip chromium_src-eca14927f3e9e925198f70bf7902cc973fb68f18.tar.gz chromium_src-eca14927f3e9e925198f70bf7902cc973fb68f18.tar.bz2 |
Fix relay session response parsing in PortAllocatorBase.
SplitStringIntoKeyValuePairs() wasn't used properly which was causing
response parsing to fail.
BUG=579733
Review URL: https://codereview.chromium.org/1617463002
Cr-Commit-Position: refs/heads/master@{#370581}
Diffstat (limited to 'remoting/protocol')
-rw-r--r-- | remoting/protocol/port_allocator_base.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/protocol/port_allocator_base.cc b/remoting/protocol/port_allocator_base.cc index 3f2b64e..acc26c7 100644 --- a/remoting/protocol/port_allocator_base.cc +++ b/remoting/protocol/port_allocator_base.cc @@ -24,7 +24,7 @@ typedef std::map<std::string, std::string> StringMap; StringMap ParseMap(const std::string& string) { StringMap map; base::StringPairs pairs; - base::SplitStringIntoKeyValuePairs(string, '\r', '=', &pairs); + base::SplitStringIntoKeyValuePairs(string, '=', '\n', &pairs); for (auto& pair : pairs) { map[pair.first] = pair.second; |