[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.165 and 1.166

version 1.165, 2008/01/19 23:09:49 version 1.166, 2008/07/17 08:48:00
Line 36 
Line 36 
 #include <signal.h>  #include <signal.h>
 #include <pwd.h>  #include <pwd.h>
 #include <unistd.h>  #include <unistd.h>
   #include <vis.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "ssh.h"  #include "ssh.h"
Line 370 
Line 371 
 void  void
 input_userauth_banner(int type, u_int32_t seq, void *ctxt)  input_userauth_banner(int type, u_int32_t seq, void *ctxt)
 {  {
         char *msg, *lang;          char *msg, *raw, *lang;
           u_int len;
   
         debug3("input_userauth_banner");          debug3("input_userauth_banner");
         msg = packet_get_string(NULL);          raw = packet_get_string(&len);
         lang = packet_get_string(NULL);          lang = packet_get_string(NULL);
         if (options.log_level >= SYSLOG_LEVEL_INFO)          if (options.log_level >= SYSLOG_LEVEL_INFO) {
                   if (len > 65536)
                           len = 65536;
                   msg = xmalloc(len * 4); /* max expansion from strnvis() */
                   strnvis(msg, raw, len * 4, VIS_SAFE|VIS_OCTAL);
                 fprintf(stderr, "%s", msg);                  fprintf(stderr, "%s", msg);
         xfree(msg);                  xfree(msg);
           }
           xfree(raw);
         xfree(lang);          xfree(lang);
 }  }
   

Legend:
Removed from v.1.165  
changed lines
  Added in v.1.166