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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.335 and 1.336

version 1.335, 2020/11/13 04:53:12 version 1.336, 2020/11/13 07:30:44
Line 32 
Line 32 
   
 #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
   #include <limits.h>
 #include <netdb.h>  #include <netdb.h>
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
Line 1917 
Line 1918 
                 if ((r = sshpkt_get_cstring(ssh, &prompt, NULL)) != 0 ||                  if ((r = sshpkt_get_cstring(ssh, &prompt, NULL)) != 0 ||
                     (r = sshpkt_get_u8(ssh, &echo)) != 0)                      (r = sshpkt_get_u8(ssh, &echo)) != 0)
                         goto out;                          goto out;
                 xasprintf(&display_prompt, "(%s@%s) %s",                  if (asmprintf(&display_prompt, INT_MAX, NULL, "(%s@%s) %s",
                     authctxt->server_user, options.host_key_alias ?                      authctxt->server_user, options.host_key_alias ?
                     options.host_key_alias : authctxt->host, prompt);                      options.host_key_alias : authctxt->host, prompt) == -1)
                           fatal_f("asmprintf failed");
                 response = read_passphrase(display_prompt, echo ? RP_ECHO : 0);                  response = read_passphrase(display_prompt, echo ? RP_ECHO : 0);
                 if ((r = sshpkt_put_cstring(ssh, response)) != 0)                  if ((r = sshpkt_put_cstring(ssh, response)) != 0)
                         goto out;                          goto out;

Legend:
Removed from v.1.335  
changed lines
  Added in v.1.336