Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
Fix issue with acl_cache: update unexpired entry
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreF committed Nov 30, 2015
1 parent 4d4f738 commit ffe1ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void acl_cache(const char *clientid, const char *username, const char *topic, in

HASH_FIND_STR(ud->aclcache, hex, a);
if (a) {
granted = a->granted;
a->granted = granted;

if (time(NULL) > (a->seconds + cacheseconds)) {
_log(LOG_DEBUG, " Expired [%s] for (%s,%s,%d)", hex, clientid, username, access);
Expand Down

0 comments on commit ffe1ef6

Please sign in to comment.