[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.135 and 1.136

version 1.135, 2004/07/11 17:48:47 version 1.136, 2004/08/11 11:09:54
Line 933 
Line 933 
 parse_server_config(ServerOptions *options, const char *filename, Buffer *conf)  parse_server_config(ServerOptions *options, const char *filename, Buffer *conf)
 {  {
         int linenum, bad_options = 0;          int linenum, bad_options = 0;
         char *cp, *cbuf;          char *cp, *obuf, *cbuf;
   
         debug2("%s: config %s len %d", __func__, filename, buffer_len(conf));          debug2("%s: config %s len %d", __func__, filename, buffer_len(conf));
   
         cbuf = xstrdup(buffer_ptr(conf));          obuf = cbuf = xstrdup(buffer_ptr(conf));
         linenum = 0;          linenum = 0;
         while((cp = strsep(&cbuf, "\n")) != NULL) {          while((cp = strsep(&cbuf, "\n")) != NULL) {
                 if (process_server_config_line(options, cp, filename,                  if (process_server_config_line(options, cp, filename,
                     linenum++) != 0)                      linenum++) != 0)
                         bad_options++;                          bad_options++;
         }          }
         free(cbuf);          xfree(obuf);
         if (bad_options > 0)          if (bad_options > 0)
                 fatal("%s: terminating, %d bad configuration options",                  fatal("%s: terminating, %d bad configuration options",
                     filename, bad_options);                      filename, bad_options);

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136