Changeset 1284


Ignore:
Timestamp:
May 17, 2007 4:18:27 PM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #279: Bug with authenticating STUN response causes STUN responses to be dropped

File:
1 edited

Legend:

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

    r1275 r1284  
    844844     * is specified in the option. 
    845845     */ 
    846     if ((options & PJ_STUN_NO_AUTHENTICATE) == 0) { 
    847         status = pj_stun_authenticate_response(pkt, pkt_len, msg, &tdata->auth_key); 
     846    if ((options & PJ_STUN_NO_AUTHENTICATE) == 0 && tdata->auth_key.slen != 0) 
     847    { 
     848        status = pj_stun_authenticate_response(pkt, pkt_len, msg,  
     849                                               &tdata->auth_key); 
    848850        if (status != PJ_SUCCESS) { 
    849851            PJ_LOG(5,(SNAME(sess),  
Note: See TracChangeset for help on using the changeset viewer.