1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04: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:
Julien Chaffraix 2010-11-12 08:15:01 -08:00
parent 8636742256
commit c8a7df108f

View File

@ -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;