Ignore:
Timestamp:
May 25, 2007 6:11:35 AM (15 years ago)
Author:
bennylp
Message:

Fixed ticket #297: Bug in handling data from peer in TURN sample application (thanks scott_lvsha)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjstun-srv-test/turn_usage.c

    r1289 r1300  
    13321332    if (peer == client->active_peer && !has_magic_cookie) { 
    13331333        pj_stun_usage_sendto(client->tu->usage, client->pkt, bytes_read, 0, 
    1334                              &client->pkt_src_addr, client->pkt_src_addr_len); 
     1334                             &client->client_src_addr, sizeof(pj_sockaddr_in)); 
    13351335    } else { 
    13361336        /* Otherwise wrap in Data Indication */ 
     
    13531353 
    13541354        pj_stun_session_send_msg(client->session, PJ_FALSE, 
    1355                                  &client->pkt_src_addr,  
    1356                                  client->pkt_src_addr_len, 
     1355                                 &client->client_src_addr,  
     1356                                 sizeof(pj_sockaddr_in), 
    13571357                                 data_ind); 
    13581358    } 
Note: See TracChangeset for help on using the changeset viewer.