diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-08-15 22:58:59 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-08-15 22:58:59 +0000 |
commit | d0ff40847d8c84b2cad534080b97f81e0ec2deba (patch) | |
tree | ae638489bb69a7abfdff781c49eda97de14e67ab | |
parent | 4da21abd24856fe6dc3cc89d2ccf870f46dd5029 (diff) |
- (bal) Fixed stray code in readconf.c that went in by mistake.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | readconf.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,6 @@ | |||
1 | 20010815 | ||
2 | - (bal) Fixed stray code in readconf.c that went in by mistake. | ||
3 | |||
1 | 20010814 | 4 | 20010814 |
2 | - (stevesk) sshpty.c, cray.[ch]: whitespace, formatting and cleanup | 5 | - (stevesk) sshpty.c, cray.[ch]: whitespace, formatting and cleanup |
3 | for some #ifdef _CRAY code; ok wendyp@cray.com | 6 | for some #ifdef _CRAY code; ok wendyp@cray.com |
@@ -6286,4 +6289,4 @@ | |||
6286 | - Wrote replacements for strlcpy and mkdtemp | 6289 | - Wrote replacements for strlcpy and mkdtemp |
6287 | - Released 1.0pre1 | 6290 | - Released 1.0pre1 |
6288 | 6291 | ||
6289 | $Id: ChangeLog,v 1.1474 2001/08/14 21:02:15 stevesk Exp $ | 6292 | $Id: ChangeLog,v 1.1475 2001/08/15 22:58:59 mouring Exp $ |
diff --git a/readconf.c b/readconf.c index c556b8338..16a14df51 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -257,8 +257,7 @@ process_config_line(Options *options, const char *host, | |||
257 | char *line, const char *filename, int linenum, | 257 | char *line, const char *filename, int linenum, |
258 | int *activep) | 258 | int *activep) |
259 | { | 259 | { |
260 | char buf[256], *s, *string = NULL, **charptr, *endofnumber, *keyword, | 260 | char buf[256], *s, *string, **charptr, *endofnumber, *keyword, *arg; |
261 | *arg; | ||
262 | int opcode, *intptr, value; | 261 | int opcode, *intptr, value; |
263 | u_short fwd_port, fwd_host_port; | 262 | u_short fwd_port, fwd_host_port; |
264 | 263 | ||
@@ -475,6 +474,7 @@ parse_string: | |||
475 | 474 | ||
476 | case oProxyCommand: | 475 | case oProxyCommand: |
477 | charptr = &options->proxy_command; | 476 | charptr = &options->proxy_command; |
477 | string = xstrdup(""); | ||
478 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { | 478 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { |
479 | string = xrealloc(string, strlen(string) + strlen(arg) + 2); | 479 | string = xrealloc(string, strlen(string) + strlen(arg) + 2); |
480 | strcat(string, " "); | 480 | strcat(string, " "); |