Permalink
Browse files

- Fix crash when using sessions (refcount issue)

  • Loading branch information...
1 parent a3d1686 commit 06242c6f85d91708eee2f9b346436d65acb8a09f @paraboul paraboul committed May 17, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/users.c
View
3 src/users.c 100755 → 100644
@@ -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);
}

0 comments on commit 06242c6

Please sign in to comment.