mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02: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
@ -373,12 +373,10 @@ unsigned int openssl_version_parser(const char *version)
|
|||||||
|
|
||||||
if (!strncmp(p, "beta", 4)) {
|
if (!strncmp(p, "beta", 4)) {
|
||||||
p += 4;
|
p += 4;
|
||||||
if (p) {
|
|
||||||
status = strtol(p, &end, 10);
|
status = strtol(p, &end, 10);
|
||||||
if (status > 14)
|
if (status > 14)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
/* that's a patch release */
|
/* that's a patch release */
|
||||||
patch = 1;
|
patch = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user