From: Ruediger Pluem Date: Tue, 27 May 2008 10:50:23 +0000 (+0000) Subject: * Handle the case that secure is NULL X-Git-Tag: 2.3.0~584 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8ca06dce0838321ae0b1172581037025ea73f4c;p=thirdparty%2Fapache%2Fhttpd.git * Handle the case that secure is NULL git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@660461 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 4efd7cfa884..91d2a69090e 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -2492,7 +2492,9 @@ static void add_cookie(request_rec *r, char *s) "; domain=", domain, expires ? "; expires=" : NULL, expires ? exp_time : NULL, - (strcasecmp(secure, "true") == 0 || strcasecmp(secure, "1") == 0) ? "; secure" : NULL, + secure ? ((strcasecmp(secure, "true") == 0 + || strcasecmp(secure, "1") == 0) ? + "; secure" : NULL) : NULL, httponly ? "; HttpOnly" : NULL, NULL);