Changeset 1433


Ignore:
Timestamp:
Sep 14, 2007 9:30:25 AM (12 years ago)
Author:
bennylp
Message:

Fixed ticket #368: STUN keep-alive timed out when ICE is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r1410 r1433  
    477477 
    478478        if (status == PJ_SUCCESS) { 
    479             if (ice_st->ice==NULL && 
    480                 (comp->stun_sess && 
    481                  pj_memcmp(comp->pkt+8, comp->ka_tsx_id, 12) == 0))  
     479            if (comp->stun_sess && 
     480                PJ_STUN_IS_RESPONSE(((pj_stun_msg_hdr*)comp->pkt)->type) && 
     481                pj_memcmp(comp->pkt+8, comp->ka_tsx_id, 12) == 0)  
    482482            { 
    483483                status = pj_stun_session_on_rx_pkt(comp->stun_sess, comp->pkt, 
     
    500500                                               comp->src_addr_len); 
    501501            } else { 
    502                 /* This must have been a very late STUN reponse */ 
     502                /* This must have been a very late STUN reponse, 
     503                 * or an early STUN Binding Request when our local 
     504                 * ICE has not been created yet. */ 
    503505            } 
    504506        } else { 
Note: See TracChangeset for help on using the changeset viewer.