summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/readconf.c b/readconf.c
index a10427086..acdf128f6 100644
--- a/readconf.c
+++ b/readconf.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: readconf.c,v 1.105 2003/04/02 09:48:07 markus Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.106 2003/04/09 12:00:37 djm Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -282,6 +282,13 @@ process_config_line(Options *options, const char *host,
282 u_short fwd_port, fwd_host_port; 282 u_short fwd_port, fwd_host_port;
283 char sfwd_host_port[6]; 283 char sfwd_host_port[6];
284 284
285 /* Strip trailing whitespace */
286 for(len = strlen(line) - 1; len > 0; len--) {
287 if (strchr(WHITESPACE, line[len]) == NULL)
288 break;
289 line[len] = '\0';
290 }
291
285 s = line; 292 s = line;
286 /* Get the keyword. (Each line is supposed to begin with a keyword). */ 293 /* Get the keyword. (Each line is supposed to begin with a keyword). */
287 keyword = strdelim(&s); 294 keyword = strdelim(&s);