mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
Fix Coverity CID 1466708 - correct pointer calculation in one case
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12894)
This commit is contained in:
parent
ebcae87f6b
commit
bde4aa8dc1
@ -89,7 +89,7 @@ int OSSL_HTTP_parse_url(const char *url, char **phost, char **pport,
|
||||
if (pport_num == NULL) {
|
||||
p = strchr(port, '/');
|
||||
if (p == NULL)
|
||||
p = p + strlen(port);
|
||||
p = host_end + 1 + strlen(port);
|
||||
} else { /* make sure a numerical port value is given */
|
||||
portnum = strtol(port, &p, 10);
|
||||
if (p == port || (*p != '\0' && *p != '/'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user