summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2018-10-12 09:41:27 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2018-10-12 09:41:27 +0000
commit2764ed20ea27240912841a1991bb136d00c60e52 (patch)
tree68009118ebc0d9cd4b1df85e75298894781110de
parent4ec14b7e42faf7e5e9de8226550b7ab112e722dc (diff)
downloadneon-2764ed20ea27240912841a1991bb136d00c60e52.tar.gz
* 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
-rw-r--r--src/ne_locks.c4
1 files changed, 4 insertions, 0 deletions
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 <limits.h>
#endif
+#include <assert.h>
#include <ctype.h> /* 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;