projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aeb3f9
)
CLEANUP: ssl: remove useless check on p in openssl_version_parser()
author
William Lallemand
<wlallemand@haproxy.org>
Sun, 22 Aug 2021 11:36:11 +0000
(13:36 +0200)
committer
William Lallemand
<wlallemand@haproxy.org>
Sun, 22 Aug 2021 11:36:11 +0000
(13:36 +0200)
Remove a useless check on a pointer which reports a NULL dereference on
coverity.
Fixes issue #1358.
src/ssl_utils.c
patch
|
blob
|
history
diff --git
a/src/ssl_utils.c
b/src/ssl_utils.c
index
20dcdb9
..
5782121
100644
(file)
--- a/
src/ssl_utils.c
+++ b/
src/ssl_utils.c
@@
-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 */