]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
we've been stomping on memory while reading config
authorRoger Dingledine <arma@torproject.org>
Sat, 18 Oct 2003 01:28:39 +0000 (01:28 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 18 Oct 2003 01:28:39 +0000 (01:28 +0000)
doesn't seem to have bitten us yet, but let's fix that :)

svn:r619

src/common/util.c

index 333cd65e6e08f560f82c4089dc72839f876d5d23..ccc130030e410380b5382f457cb95f7aaa1ec602 100644 (file)
@@ -481,7 +481,7 @@ try_next_line:
   do {
     *s = 0;
     s--;
-  } while (isspace(*s));
+  } while (s >= line && isspace(*s));
 
   key = line;
   while(isspace(*key))