From c8a7df108fb216899ad950fe3ff2e3aa7c40fbc0 Mon Sep 17 00:00:00 2001 From: Julien Chaffraix Date: Fri, 12 Nov 2010 08:15:01 -0800 Subject: security: Pass the right parameter to init. init is expecting app_data. Passing it the struct connecdata would make us crash later. --- lib/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3