[BACK]Return to ssh-agent.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/ssh-agent.c between version 1.263 and 1.264

version 1.263, 2020/08/27 01:06:18 version 1.264, 2020/09/18 08:16:38
Line 838 
Line 838 
 }  }
 #endif /* ENABLE_PKCS11 */  #endif /* ENABLE_PKCS11 */
   
 /* dispatch incoming messages */  /*
    * dispatch incoming message.
    * returns 1 on success, 0 for incomplete messages or -1 on error.
    */
 static int  static int
 process_message(u_int socknum)  process_message(u_int socknum)
 {  {
Line 893 
Line 895 
                         /* send a fail message for all other request types */                          /* send a fail message for all other request types */
                         send_status(e, 0);                          send_status(e, 0);
                 }                  }
                 return 0;                  return 1;
         }          }
   
         switch (type) {          switch (type) {
Line 937 
Line 939 
                 send_status(e, 0);                  send_status(e, 0);
                 break;                  break;
         }          }
         return 0;          return 1;
 }  }
   
 static void  static void
Line 1028 
Line 1030 
         if ((r = sshbuf_put(sockets[socknum].input, buf, len)) != 0)          if ((r = sshbuf_put(sockets[socknum].input, buf, len)) != 0)
                 fatal("%s: buffer error: %s", __func__, ssh_err(r));                  fatal("%s: buffer error: %s", __func__, ssh_err(r));
         explicit_bzero(buf, sizeof(buf));          explicit_bzero(buf, sizeof(buf));
         process_message(socknum);          for (;;) {
                   if ((r = process_message(socknum)) == -1)
                           return -1;
                   else if (r == 0)
                           break;
           }
         return 0;          return 0;
 }  }
   

Legend:
Removed from v.1.263  
changed lines
  Added in v.1.264