mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 20:15:03 -05:00
security: Pass the right parameter to init.
init is expecting app_data. Passing it the struct connecdata would make us crash later.
This commit is contained in:
parent
8636742256
commit
c8a7df108f
@ -490,7 +490,7 @@ static CURLcode choose_mech(struct connectdata *conn)
|
|||||||
conn->app_data = tmp_allocation;
|
conn->app_data = tmp_allocation;
|
||||||
|
|
||||||
if((*mech)->init) {
|
if((*mech)->init) {
|
||||||
ret = (*mech)->init(conn);
|
ret = (*mech)->init(conn->app_data);
|
||||||
if(ret != 0) {
|
if(ret != 0) {
|
||||||
infof(data, "Failed initialization for %s. Skipping it.\n", mech_name);
|
infof(data, "Failed initialization for %s. Skipping it.\n", mech_name);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user