From 63adec13153f08417b4b68c8e2780dd12e175bf1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 5 Oct 2012 19:06:24 +0100 Subject: Add comment. --- content/urldb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/urldb.c') diff --git a/content/urldb.c b/content/urldb.c index ff640b15c..6776ebe1a 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -2447,6 +2447,9 @@ char *urldb_get_cookie(const char *url) assert(url != NULL); + /* The URL must exist in the db in order to find relevant cookies, since + * we search up the tree from the URL node, and cookies from further + * up also apply. */ urldb_add_url(url); p = urldb_find_url(url); -- cgit v1.2.3