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

Diff for /src/usr.bin/ssh/ssh.c between version 1.220 and 1.221

version 1.220, 2004/06/20 17:36:59 version 1.221, 2004/06/21 17:36:31
Line 792 
Line 792 
          * for the local connection.           * for the local connection.
          */           */
         if (!got_data) {          if (!got_data) {
                 u_int32_t rand = 0;                  u_int32_t rnd = 0;
   
                 logit("Warning: No xauth data; "                  logit("Warning: No xauth data; "
                     "using fake authentication data for X11 forwarding.");                      "using fake authentication data for X11 forwarding.");
                 strlcpy(proto, SSH_X11_PROTO, sizeof proto);                  strlcpy(proto, SSH_X11_PROTO, sizeof proto);
                 for (i = 0; i < 16; i++) {                  for (i = 0; i < 16; i++) {
                         if (i % 4 == 0)                          if (i % 4 == 0)
                                 rand = arc4random();                                  rnd = arc4random();
                         snprintf(data + 2 * i, sizeof data - 2 * i, "%02x",                          snprintf(data + 2 * i, sizeof data - 2 * i, "%02x",
                             rand & 0xff);                              rnd & 0xff);
                         rand >>= 8;                          rnd >>= 8;
                 }                  }
         }          }
 }  }

Legend:
Removed from v.1.220  
changed lines
  Added in v.1.221