[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.83 and 1.84

version 1.83, 2018/06/19 02:59:41 version 1.84, 2018/10/03 06:38:35
Line 466 
Line 466 
                                 errstr = "invalid environment string";                                  errstr = "invalid environment string";
                                 goto fail;                                  goto fail;
                         }                          }
                         for (cp = opt; cp < tmp; cp++) {                          if ((cp = strdup(opt)) == NULL)
                                 if (!isalnum((u_char)*cp) && *cp != '_') {                                  goto alloc_fail;
                                         free(opt);                          cp[tmp - opt] = '\0'; /* truncate at '=' */
                                         errstr = "invalid environment string";                          if (!valid_env_name(cp)) {
                                         goto fail;                                  free(cp);
                                 }                                  free(opt);
                                   errstr = "invalid environment string";
                                   goto fail;
                         }                          }
                           free(cp);
                         /* Append it. */                          /* Append it. */
                         oarray = ret->env;                          oarray = ret->env;
                         if ((ret->env = recallocarray(ret->env, ret->nenv,                          if ((ret->env = recallocarray(ret->env, ret->nenv,

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84