]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
%ssl::<cert_errors logformat code part2: replace std::stoi call with atoi to
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 14 Dec 2015 10:00:07 +0000 (12:00 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 14 Dec 2015 10:00:07 +0000 (12:00 +0200)
make g++-4.9 on FreeBsd-9.3 happy

src/ssl/cert_validate_message.cc

index d3a3130bf0c9ef672b6e59cbd52b78ffbde451c1..261cf9a2523a11f2e33a2d2dde8e3a5a55a57994 100644 (file)
@@ -148,7 +148,7 @@ Ssl::CertValidationMsg::parseResponse(CertValidationResponse &resp, STACK_OF(X50
         } else if (param_len > param_error_depth.length() &&
                    strncmp(param, param_error_depth.c_str(), param_error_depth.length()) == 0 &&
                    std::all_of(v.begin(), v.end(), isdigit)) {
-            currentItem.error_depth = std::stoi(v);
+            currentItem.error_depth = atoi(v.c_str());
         } else {
             debugs(83, DBG_IMPORTANT, "WARNING: cert validator response parse error: Unknown parameter name " << std::string(param, param_len).c_str());
             return false;