Skip to content

Commit

Permalink
Merge pull request #1302 from vitalikvoip/tsilo_fix
Browse files Browse the repository at this point in the history
tsilo: fix internal data structures
  • Loading branch information
grumvalski committed Nov 7, 2017
2 parents 2ac3553 + cf26bbe commit acdfa07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/tsilo/ts_hash.c
Expand Up @@ -280,10 +280,10 @@ void remove_ts_urecord(ts_urecord_t* _r)
if (_r->next)
_r->next->prev = _r->prev;

/* it was the last urecord */
if (entry->n == 1) {
entry->first = entry->last = NULL;
}
if (entry->first == _r)
entry->first = _r->next;
if (entry->last == _r)
entry->last = _r->prev;

update_stat(stored_ruris, -1);

Expand Down

0 comments on commit acdfa07

Please sign in to comment.