Skip to content
Snippets Groups Projects
Commit c8a7df10 authored by Julien Chaffraix's avatar Julien Chaffraix
Browse files

security: Pass the right parameter to init.

init is expecting app_data. Passing it the struct connecdata would make
us crash later.
parent 86367422
No related branches found
No related tags found
No related merge requests found
......@@ -490,7 +490,7 @@ static CURLcode choose_mech(struct connectdata *conn)
conn->app_data = tmp_allocation;
if((*mech)->init) {
ret = (*mech)->init(conn);
ret = (*mech)->init(conn->app_data);
if(ret != 0) {
infof(data, "Failed initialization for %s. Skipping it.\n", mech_name);
continue;
......
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