mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-19 02:29:31 -05:00
BUILD: ssl/ckch: potential null pointer dereference
src/ssl_ckch.c: In function ‘ckch_conf_parse’:
src/ssl_ckch.c:4852:40: error: potential null pointer dereference [-Werror=null-dereference]
4852 | while (*r) {
| ^~
Add a test on r before using *r.
No backport needed
This commit is contained in:
parent
2e8acf54d4
commit
31bd3627cd
1 changed files with 1 additions and 1 deletions
|
|
@ -4849,7 +4849,7 @@ int ckch_conf_parse(char **args, int cur_arg, struct ckch_conf *f, int *found, c
|
|||
|
||||
goto out;
|
||||
array_err:
|
||||
while (*r) {
|
||||
while (r && *r) {
|
||||
char *prev = *r;
|
||||
r++;
|
||||
free(prev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue