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

Diff for /src/usr.bin/ssh/auth-options.c between version 1.96 and 1.97

version 1.96, 2021/07/23 03:57:20 version 1.97, 2021/07/24 01:55:19
Line 407 
Line 407 
                                 errstr = "invalid environment string";                                  errstr = "invalid environment string";
                                 goto fail;                                  goto fail;
                         }                          }
                         if ((cp = strdup(opt)) == NULL)                          if ((cp = strdup(opt)) == NULL) {
                                   free(opt);
                                 goto alloc_fail;                                  goto alloc_fail;
                           }
                         l = (size_t)(tmp - opt);                          l = (size_t)(tmp - opt);
                         cp[l] = '\0'; /* truncate at '=' */                          cp[l] = '\0'; /* truncate at '=' */
                         if (!valid_env_name(cp)) {                          if (!valid_env_name(cp)) {
Line 437 
Line 439 
                                         goto alloc_fail;                                          goto alloc_fail;
                                 }                                  }
                                 ret->env[ret->nenv++] = opt;                                  ret->env[ret->nenv++] = opt;
                                   opt = NULL; /* transferred */
                         }                          }
                           free(opt);
                 } else if (opt_match(&opts, "permitopen")) {                  } else if (opt_match(&opts, "permitopen")) {
                         if (handle_permit(&opts, 0, &ret->permitopen,                          if (handle_permit(&opts, 0, &ret->permitopen,
                             &ret->npermitopen, &errstr) != 0)                              &ret->npermitopen, &errstr) != 0)

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97