Changeset 275

Show
Ignore:
Timestamp:
04/09/03 09:25:48 (6 years ago)
Author:
jajcus
Message:

- possible NULL-dereference problem removed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/JGGTRANS_B_1_4/src/requests.c

    r220 r275  
    1 /* $Id: requests.c,v 1.19 2003/02/04 08:06:01 jajcus Exp $ */ 
     1/* $Id: requests.c,v 1.19.2.1 2003/04/09 07:25:48 jajcus Exp $ */ 
    22 
    33/* 
     
    129129 
    130130        if(type==RT_VCARD || type==RT_SEARCH){ 
     131                s=session_get_by_jid(from, stream); 
     132                if (s==NULL) return NULL; 
     133                 
    131134                r->hash=time(NULL); 
    132135                gg_pubdir50_seq_set((gg_pubdir50_t)data, r->hash); 
    133  
    134                 s=session_get_by_jid(from, stream); 
    135136                gg_pubdir50(s->ggs, (gg_pubdir50_t)data); 
    136  
    137137                g_hash_table_insert(lookups, &r->hash, r); 
    138138        }