mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
exit-status should be -1 when undefined
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@230 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -48,16 +48,16 @@ CHANNEL *channel_new(SSH_SESSION *session){
|
||||
channel->version=session->version;
|
||||
channel->stdout_buffer=buffer_new();
|
||||
channel->stderr_buffer=buffer_new();
|
||||
if(!session->channels){
|
||||
channel->exit_status=-1;
|
||||
if(!session->channels){
|
||||
session->channels=channel;
|
||||
channel->next=channel->prev=channel;
|
||||
return channel;
|
||||
}
|
||||
}
|
||||
channel->next=session->channels;
|
||||
channel->prev=session->channels->prev;
|
||||
channel->next->prev=channel;
|
||||
channel->prev->next=channel;
|
||||
channel->exit_status=-1;
|
||||
return channel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user