From: Felix Fietkau Date: Tue, 25 Mar 2014 09:14:14 +0000 (+0100) Subject: polarssl: check us->notify_verify_error for NULL before calling it X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fustream-ssl.git;a=commitdiff_plain;h=ea5e05cb553eda162463d6705a4b894853439ae4 polarssl: check us->notify_verify_error for NULL before calling it Signed-off-by: Felix Fietkau --- diff --git a/ustream-polarssl.c b/ustream-polarssl.c index ef8360a..e5c8455 100644 --- a/ustream-polarssl.c +++ b/ustream-polarssl.c @@ -200,7 +200,8 @@ static void ustream_ssl_verify_cert(struct ustream_ssl *us) msg = "unknown error"; if (r) { - us->notify_verify_error(us, r, msg); + if (us->notify_verify_error) + us->notify_verify_error(us, r, msg); return; }