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

Diff for /src/usr.bin/ssh/servconf.c between version 1.291 and 1.292

version 1.291, 2016/06/17 05:03:40 version 1.292, 2016/06/23 05:17:51
Line 1762 
Line 1762 
         case sAuthenticationMethods:          case sAuthenticationMethods:
                 if (options->num_auth_methods == 0) {                  if (options->num_auth_methods == 0) {
                         value = 0; /* seen "any" pseudo-method */                          value = 0; /* seen "any" pseudo-method */
                           value2 = 0; /* sucessfully parsed any method */
                         while ((arg = strdelim(&cp)) && *arg != '\0') {                          while ((arg = strdelim(&cp)) && *arg != '\0') {
                                 if (options->num_auth_methods >=                                  if (options->num_auth_methods >=
                                     MAX_AUTH_METHODS)                                      MAX_AUTH_METHODS)
Line 1785 
Line 1786 
                                             "authentication method list.",                                              "authentication method list.",
                                             filename, linenum);                                              filename, linenum);
                                 }                                  }
                                   value2 = 1;
                                 if (!*activep)                                  if (!*activep)
                                         continue;                                          continue;
                                 options->auth_methods[                                  options->auth_methods[
                                     options->num_auth_methods++] = xstrdup(arg);                                      options->num_auth_methods++] = xstrdup(arg);
                         }                          }
                         if (options->num_auth_methods == 0) {                          if (value2 == 0) {
                                 fatal("%s line %d: no AuthenticationMethods "                                  fatal("%s line %d: no AuthenticationMethods "
                                     "specified", filename, linenum);                                      "specified", filename, linenum);
                         }                          }

Legend:
Removed from v.1.291  
changed lines
  Added in v.1.292