[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.347 and 1.348

version 1.347, 2019/01/23 21:50:56 version 1.348, 2019/01/24 02:34:52
Line 839 
Line 839 
         /* Otherwise treat it as a list of permitted host:port */          /* Otherwise treat it as a list of permitted host:port */
         for (i = 0; i < num_opens; i++) {          for (i = 0; i < num_opens; i++) {
                 oarg = arg = xstrdup(opens[i]);                  oarg = arg = xstrdup(opens[i]);
                   ch = '\0';
                 host = hpdelim2(&arg, &ch);                  host = hpdelim2(&arg, &ch);
                 if (host == NULL || ch == '/')                  if (host == NULL || ch == '/')
                         fatal("%s: missing host in %s", __func__, what);                          fatal("%s: missing host in %s", __func__, what);
Line 1157 
Line 1158 
     const char *filename, int linenum, int *activep,      const char *filename, int linenum, int *activep,
     struct connection_info *connectinfo)      struct connection_info *connectinfo)
 {  {
         char *cp, ***chararrayptr, **charptr, *arg, *arg2, *p;          char ch, *cp, ***chararrayptr, **charptr, *arg, *arg2, *p;
         int cmdline = 0, *intptr, value, value2, n, port;          int cmdline = 0, *intptr, value, value2, n, port;
         SyslogFacility *log_facility_ptr;          SyslogFacility *log_facility_ptr;
         LogLevel *log_level_ptr;          LogLevel *log_level_ptr;
Line 1251 
Line 1252 
                         port = 0;                          port = 0;
                         p = arg;                          p = arg;
                 } else {                  } else {
                         char ch;  
                         arg2 = NULL;                          arg2 = NULL;
                           ch = '\0';
                         p = hpdelim2(&arg, &ch);                          p = hpdelim2(&arg, &ch);
                         if (p == NULL || ch == '/')                          if (p == NULL || ch == '/')
                                 fatal("%s line %d: bad address:port usage",                                  fatal("%s line %d: bad address:port usage",
Line 1881 
Line 1882 
                                  */                                   */
                                 xasprintf(&arg2, "*:%s", arg);                                  xasprintf(&arg2, "*:%s", arg);
                         } else {                          } else {
                                 char ch;  
   
                                 arg2 = xstrdup(arg);                                  arg2 = xstrdup(arg);
                                   ch = '\0';
                                 p = hpdelim2(&arg, &ch);                                  p = hpdelim2(&arg, &ch);
                                 if (p == NULL || ch == '/') {                                  if (p == NULL || ch == '/') {
                                         fatal("%s line %d: missing host in %s",                                          fatal("%s line %d: missing host in %s",

Legend:
Removed from v.1.347  
changed lines
  Added in v.1.348