From 6121890486cfe08c7ebe37566cdc0722eaf778fe Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 12 Mar 2016 05:13:22 -0500 Subject: [PATCH] fix crash on invalid lock --- src/ne_locks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ne_locks.c b/src/ne_locks.c index cbad19a3..4504045e 100644 --- a/src/ne_locks.c +++ b/src/ne_locks.c @@ -310,6 +310,8 @@ void ne_lock_using_resource(ne_request *req, const char *uri, int depth) /* Iterate over the list of stored locks to see if any of them * apply to this resource */ for (item = lrc->store->locks; item != NULL; item = item->next) { + if (!item->lock->uri.path) + continue; match = 0;