|
@@ -817,13 +817,13 @@ procreq: |
|
|
if (gsc_pending != NULL) { |
|
|
if (gsc_pending != NULL) { |
|
|
/* we are creating a new session */ |
|
|
/* we are creating a new session */ |
|
|
if (gsc_pending->sc_session == NULL) { |
|
|
if (gsc_pending->sc_session == NULL) { |
|
|
//didwork = 1; |
|
|
|
|
|
|
|
|
*didworkp = 1; |
|
|
gsc_pending->sc_session = |
|
|
gsc_pending->sc_session = |
|
|
libssh2_sftp_init(session); |
|
|
libssh2_sftp_init(session); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (gsc_pending->sc_session != NULL) { |
|
|
if (gsc_pending->sc_session != NULL) { |
|
|
//didwork = 1; |
|
|
|
|
|
|
|
|
*didworkp = 1; |
|
|
gsc_pending->sc_handle = libssh2_sftp_open( |
|
|
gsc_pending->sc_handle = libssh2_sftp_open( |
|
|
gsc_pending->sc_session, "fstest/data.img", |
|
|
gsc_pending->sc_session, "fstest/data.img", |
|
|
get_open_flags(), 0); |
|
|
get_open_flags(), 0); |
|
@@ -839,7 +839,7 @@ procreq: |
|
|
TAILQ_INSERT_HEAD(&session_cache, gsc_pending, |
|
|
TAILQ_INSERT_HEAD(&session_cache, gsc_pending, |
|
|
sc_next); |
|
|
sc_next); |
|
|
gsc_pending = NULL; |
|
|
gsc_pending = NULL; |
|
|
//didwork = 1; |
|
|
|
|
|
|
|
|
*didworkp = 1; |
|
|
goto procreq; |
|
|
goto procreq; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|