summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-25 10:14:14 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-25 10:14:14 +0100
commitea5e05cb553eda162463d6705a4b894853439ae4 (patch)
treeacedc18c14b925e628f18e96d46e15f7ec421c0e
parentf326449acf6ef042d17e3e86abbb3cf1eccc6a30 (diff)
downloadustream-ssl-ea5e05cb553eda162463d6705a4b894853439ae4.tar.gz
polarssl: check us->notify_verify_error for NULL before calling it
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--ustream-polarssl.c3
1 files changed, 2 insertions, 1 deletions
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;
}