[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.245 and 1.246

version 1.245, 2016/05/24 04:43:45 version 1.246, 2016/07/17 04:20:16
Line 65 
Line 65 
 #include "uidswap.h"  #include "uidswap.h"
 #include "hostfile.h"  #include "hostfile.h"
 #include "ssherr.h"  #include "ssherr.h"
   #include "utf8.h"
   
 #ifdef GSSAPI  #ifdef GSSAPI
 #include "ssh-gss.h"  #include "ssh-gss.h"
Line 487 
Line 488 
 int  int
 input_userauth_banner(int type, u_int32_t seq, void *ctxt)  input_userauth_banner(int type, u_int32_t seq, void *ctxt)
 {  {
         char *msg, *raw, *lang;          char *msg, *lang;
         u_int len;          u_int len;
   
         debug3("input_userauth_banner");          debug3("%s", __func__);
         raw = packet_get_string(&len);          msg = packet_get_string(&len);
         lang = packet_get_string(NULL);          lang = packet_get_string(NULL);
         if (len > 0 && options.log_level >= SYSLOG_LEVEL_INFO) {          if (len > 0 && options.log_level >= SYSLOG_LEVEL_INFO)
                 if (len > 65536)                  fmprintf(stderr, "%s", msg);
                         len = 65536;          free(msg);
                 msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */  
                 strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL|VIS_NOSLASH);  
                 fprintf(stderr, "%s", msg);  
                 free(msg);  
         }  
         free(raw);  
         free(lang);          free(lang);
         return 0;          return 0;
 }  }

Legend:
Removed from v.1.245  
changed lines
  Added in v.1.246