diff --git a/src/ckdb_dbio.c b/src/ckdb_dbio.c index ec866d05..393a8b2e 100644 --- a/src/ckdb_dbio.c +++ b/src/ckdb_dbio.c @@ -649,7 +649,9 @@ K_ITEM *users_add(PGconn *conn, char *username, char *emailaddress, * and thus throw away any differences in the 2nd */ K_WLOCK(users_db_free); + K_RLOCK(users_free); item = find_users(username); + K_RUNLOCK(users_free); if (item) { ok = true; goto already;