Accept transport lines containing more than just the transport name.

Sanitized bridge descriptors contain transport lines with just the
transport name.  However, there are now relays including unsanitized
transport lines, most likely because of a configuration problem.  Don't
reject the entire descriptor when encountering those lines.
This commit is contained in:
Karsten Loesing 2012-08-06 08:08:44 +02:00
parent 20f9d5574f
commit 25f0e656c4

View File

@ -571,7 +571,7 @@ public class ExtraInfoDescriptorImpl extends DescriptorImpl
private void parseTransportLine(String line, String lineNoOpt,
String[] partsNoOpt) throws DescriptorParseException {
if (partsNoOpt.length != 2) {
if (partsNoOpt.length < 2) {
throw new DescriptorParseException("Illegal line '" + line + "'.");
}
this.transports.add(partsNoOpt[1]);