1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

socket: Undouble socket fds

Signed-off-by: Sanne Raymaekers <sraymaek@redhat.com>
This commit is contained in:
Sanne Raymaekers
2018-10-25 18:38:32 +02:00
committed by Andreas Schneider
parent b796924fea
commit ced05eb6db
8 changed files with 85 additions and 159 deletions

View File

@@ -312,7 +312,7 @@ static int ssh_pcap_context_connect(ssh_pcap_context ctx){
return SSH_ERROR;
if(session->socket==NULL)
return SSH_ERROR;
fd=ssh_socket_get_fd_in(session->socket);
fd = ssh_socket_get_fd(session->socket);
/* TODO: adapt for windows */
if(fd<0)
return SSH_ERROR;