summaryrefslogtreecommitdiff
path: root/monkey/cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'monkey/cert.c')
-rw-r--r--monkey/cert.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/monkey/cert.c b/monkey/cert.c
index d7f44d11e..0aa01f3a7 100644
--- a/monkey/cert.c
+++ b/monkey/cert.c
@@ -39,8 +39,10 @@ gui_cert_verify(nsurl *url, const struct ssl_cert_info *certs,
void *cbpw)
{
monkey_cert_t *m4t = calloc(sizeof(*m4t), 1);
- if (m4t == NULL)
+ if (m4t == NULL) {
cb(false, cbpw);
+ return;
+ }
m4t->cb = cb;
m4t->pw = cbpw;
m4t->num = cert_ctr++;