Skip to content
Snippets Groups Projects
Verified Commit 89cc769d authored by akwizgran's avatar akwizgran
Browse files

Don't accept empty keys/values in transport properties.

parent fcdc6eba
No related branches found
No related tags found
No related merge requests found
...@@ -392,9 +392,9 @@ class ClientHelperImpl implements ClientHelper { ...@@ -392,9 +392,9 @@ class ClientHelperImpl implements ClientHelper {
checkSize(properties, 0, MAX_PROPERTIES_PER_TRANSPORT); checkSize(properties, 0, MAX_PROPERTIES_PER_TRANSPORT);
TransportProperties p = new TransportProperties(); TransportProperties p = new TransportProperties();
for (String key : properties.keySet()) { for (String key : properties.keySet()) {
checkLength(key, 0, MAX_PROPERTY_LENGTH); checkLength(key, 1, MAX_PROPERTY_LENGTH);
String value = properties.getString(key); String value = properties.getString(key);
checkLength(value, 0, MAX_PROPERTY_LENGTH); checkLength(value, 1, MAX_PROPERTY_LENGTH);
p.put(key, value); p.put(key, value);
} }
return p; return p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment