Return success in custom_ext_parse_old_cb_wrap if parse_cb is NULL
authorGraham Edgecombe <gpe@grahamedgecombe.com>
Tue, 25 Apr 2017 18:36:10 +0000 (19:36 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 26 Apr 2017 16:37:30 +0000 (17:37 +0100)
commite596c68c315dc896458cd2a97ab62ec88e144e0b
tree85bb287da29f8c3324fb78862bb6e8af515581a9
parent8ed9a26616a7101ea698c189fbbb663186676075
Return success in custom_ext_parse_old_cb_wrap if parse_cb is NULL

This fixes a segfault if a NULL parse_cb is passed to
SSL_CTX_add_{client,server}_custom_ext, which was supported in the
pre-1.1.1 implementation.

This behaviour is consistent with the other custom_ext_*_old_cb_wrap
functions, and with the new SSL_CTX_add_custom_ext function.

CLA: trivial

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3310)
ssl/statem/extensions_cust.c