Skip to content
Snippets Groups Projects
Commit bd0e6881 authored by Francesco Giacomini's avatar Francesco Giacomini
Browse files

avoid dangling pointer (to a destroyed temporary)

fix issue #20
parent c05b3d9e
No related branches found
No related tags found
1 merge request!11avoid dangling pointer (to a destroyed temporary)
Pipeline #18819 passed
......@@ -255,8 +255,8 @@ static MaybeVomsAc retrieve_voms_ac_from_proxy(ngx_http_request_t* r)
auto ok = vd.Retrieve(client_cert.get(), client_chain, RECURSE_CHAIN);
if (!ok) {
auto msg = vd.ErrorMessage().c_str();
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "%s", msg);
auto msg = vd.ErrorMessage();
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "%s", msg.c_str());
return boost::none;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment