mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MEDIUM: ssl: NULL dereference in ssl_sock_load_cert_sni()
A NULL dereference can occur when inserting SNIs. In the case of checking for duplicates, if there is already several sni_ctx with the same key. Fix issue #321.
This commit is contained in:
parent
246c0246d3
commit
e15029bea9
@ -2777,6 +2777,7 @@ static void ssl_sock_load_cert_sni(struct ckch_inst *ckch_inst, struct bind_conf
|
|||||||
LIST_DEL(&sc0->by_ckch_inst);
|
LIST_DEL(&sc0->by_ckch_inst);
|
||||||
free(sc0);
|
free(sc0);
|
||||||
sc0 = NULL;
|
sc0 = NULL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user