Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Unified Diff: remoting/protocol/content_description.cc

Issue 10831022: Skip unknown channel configurations when parsing session config. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/content_description.cc
diff --git a/remoting/protocol/content_description.cc b/remoting/protocol/content_description.cc
index 0cd7ce441d56bf781ebc87a72f63f090341e3da9..6fb7d5a6d07a5989f7a6fa709fcdaf7c4ab85140 100644
--- a/remoting/protocol/content_description.cc
+++ b/remoting/protocol/content_description.cc
@@ -235,10 +235,10 @@ bool ContentDescription::ParseChannelConfigs(
const XmlElement* child = element->FirstNamed(tag);
while (child) {
ChannelConfig channel_config;
- if (!ParseChannelConfig(child, codec_required, &channel_config))
- return false;
- configs->push_back(channel_config);
- child = child->NextNamed(tag);
+ if (ParseChannelConfig(child, codec_required, &channel_config)) {
+ configs->push_back(channel_config);
+ child = child->NextNamed(tag);
simonmorris 2012/07/26 16:11:06 The loop will go infinite if ParseChannelConfig ev
Sergey Ulanov 2012/07/26 22:54:45 Fixed.
+ }
}
if (optional && configs->empty()) {
// If there's no mention of the tag, implicitly assume
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698