From 81b89946e68746a978e40a919d4a13e66d6323c9 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 24 Sep 2023 10:27:29 +0200 Subject: [PATCH] [cookies] dl=0 ok --- src/cookies/path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cookies/path.c b/src/cookies/path.c index f5578937..c51bc859 100644 --- a/src/cookies/path.c +++ b/src/cookies/path.c @@ -8,6 +8,8 @@ is_path_prefix(char *cookiepath, char *requestpath) { int dl = strlen(cookiepath); + if (!dl) return 1; + if (memcmp(cookiepath, requestpath, dl)) return 0; return (!memcmp(cookiepath, requestpath, dl)