1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

Use consistent return values for packet_translate().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@456 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-14 08:55:33 +00:00
parent 640cf4cc93
commit 22b3122c6c
5 changed files with 32 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ static int wait_auth_status(SSH_SESSION *session,int kbdint){
while(cont){
if(packet_read(session))
break;
if(packet_translate(session))
if(packet_translate(session) != SSH_OK)
break;
switch(session->in_packet.type){
case SSH2_MSG_USERAUTH_FAILURE: