mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
fix null derference (coverity 1127056)
This commit is contained in:
parent
36bf4547c6
commit
75ec87cbca
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user