From ea5e05cb553eda162463d6705a4b894853439ae4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 25 Mar 2014 10:14:14 +0100 Subject: [PATCH] polarssl: check us->notify_verify_error for NULL before calling it Signed-off-by: Felix Fietkau --- ustream-polarssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.25.1