Mercurial > hg > nginx
comparison src/stream/ngx_stream_upstream_round_robin.h @ 8163:77d5c662f3d9
Fixed segfault if regex studies list allocation fails.
The rcf->studies list is unconditionally accessed by ngx_regex_cleanup(),
and this used to cause NULL pointer dereference if allocation
failed. Fix is to set cleanup handler only when allocation succeeds.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 18 Apr 2023 06:28:46 +0300 |
parents | 90cc7194e993 |
children |
comparison
equal
deleted
inserted
replaced
8162:252a7acd35ce | 8163:77d5c662f3d9 |
---|