diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-11-12 08:15:01 -0800 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-11-12 08:24:32 -0800 |
commit | c8a7df108fb216899ad950fe3ff2e3aa7c40fbc0 (patch) | |
tree | 21be219a8c0882340f529b62f21f59ba97dc373a | |
parent | 8636742256c724bee50452d9ef92ffd25b76b8a1 (diff) |
security: Pass the right parameter to init.
init is expecting app_data. Passing it the struct connecdata would make
us crash later.
-rw-r--r-- | lib/security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/security.c b/lib/security.c index 244ab6fee..d22ff9a32 100644 --- a/lib/security.c +++ b/lib/security.c @@ -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; |