Transform an if into an elif in cert parsing.

This commit is contained in:
Emmanuel Gil Peyrot 2016-10-23 14:15:02 +01:00
parent d008988843
commit 391f12eeab

View file

@ -76,7 +76,7 @@ def extract_names(raw_cert):
name_type = name.getName()
if name_type == 'dNSName':
results['DNS'].add(decode_str(name.getComponent()))
if name_type == 'uniformResourceIdentifier':
elif name_type == 'uniformResourceIdentifier':
value = decode_str(name.getComponent())
if value.startswith('xmpp:'):
results['URI'].add(value[5:])