aboutsummaryrefslogtreecommitdiff
path: root/lib/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/security.c')
-rw-r--r--lib/security.c2
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;