From: Stefan Eissing Date: Thu, 23 May 2019 14:29:10 +0000 (+0000) Subject: Addendum to r1856493: check NULLness of new arg parameter. X-Git-Tag: 2.5.0-alpha2-ci-test-only~2051 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa885488bc2caea2e166dd1dc8ff089b1961a85c;p=thirdparty%2Fapache%2Fhttpd.git Addendum to r1856493: check NULLness of new arg parameter. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1859791 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index d8018c74f2d..95a89837be9 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -974,7 +974,7 @@ apr_status_t cache_strqtok(char *str, char **token, char **arg, char **last) if (*str == '=') { state = IN_BETWEEN; *wpos++ = '\0'; - *arg = wpos; + if (arg) *arg = wpos; continue; } break;