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

Diff for /src/usr.bin/ssh/clientloop.c between version 1.275 and 1.276

version 1.275, 2015/07/10 06:21:53 version 1.276, 2015/10/20 03:36:35
Line 303 
Line 303 
         static char proto[512], data[512];          static char proto[512], data[512];
         FILE *f;          FILE *f;
         int got_data = 0, generated = 0, do_unlink = 0, i;          int got_data = 0, generated = 0, do_unlink = 0, i;
         char *xauthdir, *xauthfile;          char xauthdir[PATH_MAX] = "", xauthfile[PATH_MAX] = "";
         struct stat st;          struct stat st;
         u_int now, x11_timeout_real;          u_int now, x11_timeout_real;
   
         xauthdir = xauthfile = NULL;  
         *_proto = proto;          *_proto = proto;
         *_data = data;          *_data = data;
         proto[0] = data[0] = '\0';          proto[0] = data[0] = '\0';
Line 335 
Line 334 
                         display = xdisplay;                          display = xdisplay;
                 }                  }
                 if (trusted == 0) {                  if (trusted == 0) {
                         xauthdir = xmalloc(PATH_MAX);  
                         xauthfile = xmalloc(PATH_MAX);  
                         mktemp_proto(xauthdir, PATH_MAX);                          mktemp_proto(xauthdir, PATH_MAX);
                         /*                          /*
                          * The authentication cookie should briefly outlive                           * The authentication cookie should briefly outlive
Line 399 
Line 396 
                 unlink(xauthfile);                  unlink(xauthfile);
                 rmdir(xauthdir);                  rmdir(xauthdir);
         }          }
         free(xauthdir);  
         free(xauthfile);  
   
         /*          /*
          * If we didn't get authentication data, just make up some           * If we didn't get authentication data, just make up some

Legend:
Removed from v.1.275  
changed lines
  Added in v.1.276