57e3a1
diff --git a/modules/dav/main/util.c b/modules/dav/main/util.c
57e3a1
index 1ae5914027c..3f7822fc931 100644
57e3a1
--- a/modules/dav/main/util.c
57e3a1
+++ b/modules/dav/main/util.c
57e3a1
@@ -801,8 +801,14 @@ static dav_error * dav_process_if_header(request_rec *r, dav_if_header **p_ih)
57e3a1
                                                  "for the same state.");
57e3a1
                         }
57e3a1
                         condition = DAV_IF_COND_NOT;
57e3a1
+                        list += 2;
57e3a1
+                    }
57e3a1
+                    else {
57e3a1
+                        return dav_new_error(r->pool, HTTP_BAD_REQUEST,
57e3a1
+                                             DAV_ERR_IF_UNK_CHAR, 0,
57e3a1
+                                             "Invalid \"If:\" header: "
57e3a1
+                                             "Unexpected character in List");
57e3a1
                     }
57e3a1
-                    list += 2;
57e3a1
                     break;
57e3a1
 
57e3a1
                 case ' ':