summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/urldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/urldb.c b/content/urldb.c
index e46245152..f55a1c291 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -2761,7 +2761,7 @@ bool urldb_set_cookie(const char *header, nsurl *url, nsurl *referer)
/* Ensure that url's host name domain matches
* referer's (4.3.5) */
- rhost = nsurl_get_component(url, NSURL_HOST);
+ rhost = nsurl_get_component(referer, NSURL_HOST);
if (rhost == NULL) {
goto error;
}