Skip to content

Commit

Permalink
- Fix crash when using sessions (refcount issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
paraboul committed May 17, 2010
1 parent a3d1686 commit 06242c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/users.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ subuser *addsubuser(ape_socket *client, const char *channel, USERS *user, acetab
if (sub->next != NULL && sub->next->raw_pools.low.nraw) {
struct _raw_pool *rTmp;
for (rTmp = sub->next->raw_pools.low.rawhead; rTmp->raw != NULL; rTmp = rTmp->next) {
if (rTmp->raw->refcount == 0) {
rTmp->raw->refcount = 1;
}
post_raw_sub(copy_raw_z(rTmp->raw), sub, g_ape);
}

Expand Down

0 comments on commit 06242c6

Please sign in to comment.