[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.298 and 1.299

version 1.298, 2017/05/31 07:00:13 version 1.299, 2017/05/31 09:15:42
Line 1797 
Line 1797 
         /* This line contained a key that not offered by the server */          /* This line contained a key that not offered by the server */
         debug3("%s: deprecated %s key at %s:%ld", __func__,          debug3("%s: deprecated %s key at %s:%ld", __func__,
             sshkey_ssh_name(l->key), l->path, l->linenum);              sshkey_ssh_name(l->key), l->path, l->linenum);
         if ((tmp = reallocarray(ctx->old_keys, ctx->nold + 1,          if ((tmp = recallocarray(ctx->old_keys, ctx->nold, ctx->nold + 1,
             sizeof(*ctx->old_keys))) == NULL)              sizeof(*ctx->old_keys))) == NULL)
                 fatal("%s: reallocarray failed nold = %zu",                  fatal("%s: recallocarray failed nold = %zu",
                     __func__, ctx->nold);                      __func__, ctx->nold);
         ctx->old_keys = tmp;          ctx->old_keys = tmp;
         ctx->old_keys[ctx->nold++] = l->key;          ctx->old_keys[ctx->nold++] = l->key;
Line 2031 
Line 2031 
                         }                          }
                 }                  }
                 /* Key is good, record it */                  /* Key is good, record it */
                 if ((tmp = reallocarray(ctx->keys, ctx->nkeys + 1,                  if ((tmp = recallocarray(ctx->keys, ctx->nkeys, ctx->nkeys + 1,
                     sizeof(*ctx->keys))) == NULL)                      sizeof(*ctx->keys))) == NULL)
                         fatal("%s: reallocarray failed nkeys = %zu",                          fatal("%s: recallocarray failed nkeys = %zu",
                             __func__, ctx->nkeys);                              __func__, ctx->nkeys);
                 ctx->keys = tmp;                  ctx->keys = tmp;
                 ctx->keys[ctx->nkeys++] = key;                  ctx->keys[ctx->nkeys++] = key;

Legend:
Removed from v.1.298  
changed lines
  Added in v.1.299