Changeset 117

Show
Ignore:
Timestamp:
21/10/08 15:56:07 (3 months ago)
Author:
smoku
Message:

Fixed segfault in user_probe_all()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • jggtrans/src/users.c

    r111 r117  
    636636                if (S_ISREG(st.st_mode) && strchr(de->d_name,'@')){ 
    637637                        u=user_get_by_jid(de->d_name); 
    638                         if(u && (u->subscribe==SUB_FROM || u->subscribe==SUB_BOTH)) 
    639                                 presence_send_probe(s,NULL,de->d_name); 
    640                         user_free(u); 
     638                        if(u){ 
     639                                if(u->subscribe==SUB_FROM || u->subscribe==SUB_BOTH)) 
     640                                        presence_send_probe(s,NULL,de->d_name); 
     641                                user_free(u); 
     642                        } 
    641643                } 
    642644        }