return false;
}
- const char *errorName = parser.getByName("name").termedBuf();
- if (!errorName) {
+ const String errorName = parser.getByName("name");
+ if (!errorName.size()) {
debugs(83, DBG_IMPORTANT, HERE <<
"WARNING! invalid or no error detail name on:" << s);
return false;
}
- Ssl::ssl_error_t ssl_error = Ssl::GetErrorCode(errorName);
+ Ssl::ssl_error_t ssl_error = Ssl::GetErrorCode(errorName.termedBuf());
if (ssl_error == SSL_ERROR_NONE) {
debugs(83, DBG_IMPORTANT, HERE <<
"WARNING! invalid error detail name: " << errorName);