diff options
author | Bruno Cabral <bcabral@uw.edu> | 2014-09-04 22:53:13 +0000 |
---|---|---|
committer | Bruno Cabral <bcabral@uw.edu> | 2014-09-04 22:53:13 +0000 |
commit | 2442c3b2635c9932a5f115664806871170576803 (patch) | |
tree | 2279e9c14ad9fd5745e4b88af56250dfb2c13949 /src/fs/fs_uri.c | |
parent | 83995cf89e0515b46d65badd09b641c988a5ea9d (diff) | |
download | gnunet-2442c3b2635c9932a5f115664806871170576803.tar.gz gnunet-2442c3b2635c9932a5f115664806871170576803.zip |
Avoid infinite loop. The loop go on backward, if we add 3 when we see a double quote, we will get into a infinite loop
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index cce420f0d..74daefc4b 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -316,7 +316,7 @@ uri_ksk_parse (const char *s, | |||
316 | if ((s[i] == '%') && (&s[i] == strstr (&s[i], "%22"))) | 316 | if ((s[i] == '%') && (&s[i] == strstr (&s[i], "%22"))) |
317 | { | 317 | { |
318 | saw_quote = (saw_quote + 1) % 2; | 318 | saw_quote = (saw_quote + 1) % 2; |
319 | i += 3; | 319 | //i += 3; |
320 | continue; | 320 | continue; |
321 | } | 321 | } |
322 | if ((dup[i] == '+') && (saw_quote == 0)) | 322 | if ((dup[i] == '+') && (saw_quote == 0)) |