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

Diff for /src/usr.bin/ssh/kex.c between version 1.152 and 1.153

version 1.152, 2019/09/05 09:35:19 version 1.153, 2019/09/06 01:58:50
Line 212 
Line 212 
         char *list = NULL, *ret = NULL, *matching = NULL, *opatterns = NULL;          char *list = NULL, *ret = NULL, *matching = NULL, *opatterns = NULL;
         int r = SSH_ERR_INTERNAL_ERROR;          int r = SSH_ERR_INTERNAL_ERROR;
   
         if (listp == NULL || *listp == NULL || **listp == '\0') {          if (listp == NULL || def == NULL || all == NULL)
                   return SSH_ERR_INVALID_ARGUMENT;
   
           if (*listp == NULL || **listp == '\0') {
                 if ((*listp = strdup(def)) == NULL)                  if ((*listp = strdup(def)) == NULL)
                         return SSH_ERR_ALLOC_FAIL;                          return SSH_ERR_ALLOC_FAIL;
                 return 0;                  return 0;

Legend:
Removed from v.1.152  
changed lines
  Added in v.1.153