aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_uri.c
diff options
context:
space:
mode:
authorBruno Cabral <bcabral@uw.edu>2014-09-04 22:53:13 +0000
committerBruno Cabral <bcabral@uw.edu>2014-09-04 22:53:13 +0000
commit2442c3b2635c9932a5f115664806871170576803 (patch)
tree2279e9c14ad9fd5745e4b88af56250dfb2c13949 /src/fs/fs_uri.c
parent83995cf89e0515b46d65badd09b641c988a5ea9d (diff)
downloadgnunet-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.c2
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))