mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
CLEANUP: ssl: remove useless check on p in openssl_version_parser()
Remove a useless check on a pointer which reports a NULL dereference on coverity. Fixes issue #1358.
This commit is contained in:
parent
3aeb3f9347
commit
8b673f0fe3
1 changed files with 3 additions and 5 deletions
|
|
@ -373,11 +373,9 @@ unsigned int openssl_version_parser(const char *version)
|
|||
|
||||
if (!strncmp(p, "beta", 4)) {
|
||||
p += 4;
|
||||
if (p) {
|
||||
status = strtol(p, &end, 10);
|
||||
if (status > 14)
|
||||
goto error;
|
||||
}
|
||||
status = strtol(p, &end, 10);
|
||||
if (status > 14)
|
||||
goto error;
|
||||
}
|
||||
} else {
|
||||
/* that's a patch release */
|
||||
|
|
|
|||
Loading…
Reference in a new issue