From: Dr. David von Oheimb Date: Wed, 16 Sep 2020 11:29:05 +0000 (+0200) Subject: Fix Coverity CID 1466708 - correct pointer calculation in one case X-Git-Tag: openssl-3.0.0-alpha7~218 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bde4aa8dc1946dff189c89396814a98d1052262d;p=thirdparty%2Fopenssl.git Fix Coverity CID 1466708 - correct pointer calculation in one case Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/12894) --- diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c index 19b964e6133..be790bda902 100644 --- a/crypto/http/http_lib.c +++ b/crypto/http/http_lib.c @@ -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 != '/'))