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,6 +48,7 @@ CHANNEL *channel_new(SSH_SESSION *session){
|
|||||||
channel->version=session->version;
|
channel->version=session->version;
|
||||||
channel->stdout_buffer=buffer_new();
|
channel->stdout_buffer=buffer_new();
|
||||||
channel->stderr_buffer=buffer_new();
|
channel->stderr_buffer=buffer_new();
|
||||||
|
channel->exit_status=-1;
|
||||||
if(!session->channels){
|
if(!session->channels){
|
||||||
session->channels=channel;
|
session->channels=channel;
|
||||||
channel->next=channel->prev=channel;
|
channel->next=channel->prev=channel;
|
||||||
@@ -57,7 +58,6 @@ CHANNEL *channel_new(SSH_SESSION *session){
|
|||||||
channel->prev=session->channels->prev;
|
channel->prev=session->channels->prev;
|
||||||
channel->next->prev=channel;
|
channel->next->prev=channel;
|
||||||
channel->prev->next=channel;
|
channel->prev->next=channel;
|
||||||
channel->exit_status=-1;
|
|
||||||
return channel;
|
return channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user