Changeset 715

Show
Ignore:
Timestamp:
01/12/08 20:39:54 (5 weeks ago)
Author:
markdoliner
Message:

When unblocking the last user in the list of users, update the
zlist->last pointer to avoid crashing later on.

Thanks to Vijay and Jim at Meebo for tracking this down.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/sm/mod_privacy.c

    r629 r715  
    624624                    scan->next->prev = scan->prev; 
    625625            } 
     626 
     627            if (zlist->last == scan) 
     628                zlist->last = scan->prev; 
     629 
    626630            /* and from the storage */ 
    627631            sprintf(filter, "(&(type=3:jid)(value=%i:%s)(deny=1)", strlen(jid_full(scan->jid)), jid_full(scan->jid));