Browse Source

ckdb - missing lock on users access - part 2 :)

master
kanoi 8 years ago
parent
commit
96b6a9fc6b
  1. 2
      src/ckdb_dbio.c

2
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 */ * and thus throw away any differences in the 2nd */
K_WLOCK(users_db_free); K_WLOCK(users_db_free);
K_RLOCK(users_free);
item = find_users(username); item = find_users(username);
K_RUNLOCK(users_free);
if (item) { if (item) {
ok = true; ok = true;
goto already; goto already;

Loading…
Cancel
Save