version 1.65, 2017/05/30 14:29:59 |
version 1.66, 2017/05/31 09:15:42 |
|
|
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++; |