Skip to content

Commit 23bb4a4

Browse files
committed
python BUGFIX SSH interactive authentication callback
private data were not passed correctly into the callback function (data from another authentication method were used).
1 parent e381280 commit 23bb4a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ auth_interactive_pyclb(const char *auth_name, const char *instruction, const cha
141141
ncSSHObject *ssh = (ncSSHObject*)priv;
142142
char *password = NULL;
143143

144-
arglist = Py_BuildValue("(sssO)", auth_name, instruction, prompt, ssh->clb_password_data ? ssh->clb_password_data : Py_None);
144+
arglist = Py_BuildValue("(sssO)", auth_name, instruction, prompt, ssh->clb_interactive_data ? ssh->clb_interactive_data : Py_None);
145145
if (!arglist) {
146146
PyErr_Print();
147147
return NULL;

0 commit comments

Comments
 (0)