double-free (and segfault) with bad arg to SSLCryptoDevice.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1157105 13f79535-47bb-0310-9956-
ffa450edef68
"'builtin' (none)";
e = ENGINE_get_first();
while (e) {
- ENGINE *en;
err = apr_pstrcat(cmd->pool, err, ", '", ENGINE_get_id(e),
"' (", ENGINE_get_name(e), ")", NULL);
- en = ENGINE_get_next(e);
- ENGINE_free(e);
- e = en;
+ /* Iterate; this call implicitly decrements the refcount
+ * on the 'old' e, per the docs in engine.h. */
+ e = ENGINE_get_next(e);
}
return err;
}