Make tls_config_parse_protocols() work correctly when passed a NULL pointer
authorjsing <jsing@openbsd.org>
Sat, 9 Dec 2017 16:46:08 +0000 (16:46 +0000)
committerjsing <jsing@openbsd.org>
Sat, 9 Dec 2017 16:46:08 +0000 (16:46 +0000)
commit568004a55bffca48ca8672baeb0f1704e0362b6e
tree61e538e7ca7d5c56c5587e39a91b36f17ceee141
parent4031707886f06d3b6b0b34e008957c3d859d6ac0
Make tls_config_parse_protocols() work correctly when passed a NULL pointer
for a protocol string.

Issue found by semarie@, who also provided the diff.
lib/libtls/tls_config.c