]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/dav/main/util.c (dav_validate_resource_state): Fix error
authorJoe Orton <jorton@apache.org>
Thu, 7 Dec 2023 18:29:15 +0000 (18:29 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 7 Dec 2023 18:29:15 +0000 (18:29 +0000)
  message formatting if an unauthenticated user tries to use an
  authenticated user's lock token (cosmetic fix only).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1914439 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/util.c

index 2351e3f38e889b417f7fe9d87e1096a9eb00ca75..87d110d1b2a6106d32c9e83d864c73eda13d0d53 100644 (file)
@@ -1286,7 +1286,7 @@ static dav_error * dav_validate_resource_state(apr_pool_t *p,
                         const char *errmsg;
 
                         errmsg = apr_pstrcat(p, "User \"",
-                                            r->user,
+                                             r->user ? r->user : "[none]",
                                             "\" submitted a locktoken created "
                                             "by user \"",
                                             lock->auth_user, "\".", NULL);