1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-04-27 05:18:00 +00: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 .
This commit is contained in:
William Lallemand 2019-10-14 10:46:58 +02:00 committed by William Lallemand
parent 246c0246d3
commit e15029bea9

View File

@ -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;
} }
} }