projects
/
oweals
/
openwrt-ustream-ssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f326449
)
polarssl: check us->notify_verify_error for NULL before calling it
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 25 Mar 2014 09:14:14 +0000
(10:14 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 25 Mar 2014 09:14:14 +0000
(10:14 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-polarssl.c
patch
|
blob
|
history
diff --git
a/ustream-polarssl.c
b/ustream-polarssl.c
index ef8360abff64eac8d7242b8346b122acb83c0d98..e5c84557381dd5a1d56e14923bdef6c2b1dbb134 100644
(file)
--- 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;
}