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

Diff for /src/usr.bin/ssh/auth2-pubkey.c between version 1.65 and 1.66

version 1.65, 2017/05/30 14:29:59 version 1.66, 2017/05/31 09:15:42
Line 1153 
Line 1153 
         struct sshkey **tmp;          struct sshkey **tmp;
   
         if (authctxt->nprev_userkeys >= INT_MAX ||          if (authctxt->nprev_userkeys >= INT_MAX ||
             (tmp = reallocarray(authctxt->prev_userkeys,              (tmp = recallocarray(authctxt->prev_userkeys,
             authctxt->nprev_userkeys + 1, sizeof(*tmp))) == NULL)              authctxt->nprev_userkeys, authctxt->nprev_userkeys + 1,
                 fatal("%s: reallocarray failed", __func__);              sizeof(*tmp))) == NULL)
                   fatal("%s: recallocarray failed", __func__);
         authctxt->prev_userkeys = tmp;          authctxt->prev_userkeys = tmp;
         authctxt->prev_userkeys[authctxt->nprev_userkeys] = key;          authctxt->prev_userkeys[authctxt->nprev_userkeys] = key;
         authctxt->nprev_userkeys++;          authctxt->nprev_userkeys++;

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66