[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.167 and 1.168

version 1.167, 2002/03/25 17:34:27 version 1.168, 2002/03/25 21:04:02
Line 1177 
Line 1177 
                 int count = 0;                  int count = 0;
                 for (i = 0; keys[i] != NULL; i++) {                  for (i = 0; keys[i] != NULL; i++) {
                         count++;                          count++;
                         if (options.num_identity_files + 1 > SSH_MAX_IDENTITY_FILES)  
                                 options.num_identity_files = SSH_MAX_IDENTITY_FILES - 1;  
                         memmove(&options.identity_files[1], &options.identity_files[0],                          memmove(&options.identity_files[1], &options.identity_files[0],
                             sizeof(char *) * (SSH_MAX_IDENTITY_FILES - 1));                              sizeof(char *) * (SSH_MAX_IDENTITY_FILES - 1));
                         memmove(&options.identity_keys[1], &options.identity_keys[0],                          memmove(&options.identity_keys[1], &options.identity_keys[0],
Line 1187 
Line 1185 
                         options.identity_keys[0] = keys[i];                          options.identity_keys[0] = keys[i];
                         options.identity_files[0] = xstrdup("smartcard key");;                          options.identity_files[0] = xstrdup("smartcard key");;
                 }                  }
                   if (options.num_identity_files > SSH_MAX_IDENTITY_FILES)
                           options.num_identity_files = SSH_MAX_IDENTITY_FILES;
                 i = count;                  i = count;
                 xfree(keys);                  xfree(keys);
         }          }

Legend:
Removed from v.1.167  
changed lines
  Added in v.1.168