server BUGFIX nc_ps_poll deadlock due to multi-thread conflict
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c
index 7187328..0881c5a 100644
--- a/src/session_server_ssh.c
+++ b/src/session_server_ssh.c
@@ -1540,7 +1540,7 @@
     }
 
     for (i = 0; i < ps->session_count; ++i) {
-        cur_session = ps->sessions[i].session;
+        cur_session = ps->sessions[i]->session;
         if ((cur_session->status == NC_STATUS_RUNNING) && (cur_session->ti_type == NC_TI_LIBSSH)
                 && cur_session->ti.libssh.next) {
             /* an SSH session with more channels */