From 2764ed20ea27240912841a1991bb136d00c60e52 Mon Sep 17 00:00:00 2001 From: joe Date: Fri, 12 Oct 2018 09:41:27 +0000 Subject: * src/ne_socket.c (error_ossl): Return NE_SOCK_RETRY for SSL_ERROR_WANT_READ. (read_ossl, readable_ossl): Update for OpenSSL 1.1.1. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2030 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- src/ne_locks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ne_locks.c b/src/ne_locks.c index fbe390c..58e71c4 100644 --- a/src/ne_locks.c +++ b/src/ne_locks.c @@ -32,6 +32,7 @@ #ifdef HAVE_LIMITS_H #include #endif +#include #include /* for isdigit() */ @@ -332,6 +333,9 @@ void ne_lockstore_remove(ne_lock_store *store, struct ne_lock *lock) for (item = store->locks; item != NULL; item = item->next) if (item->lock == lock) break; + + /* API condition that lock is present in the store. */ + assert(item); if (item->prev != NULL) { item->prev->next = item->next; -- cgit v1.2.1