Changeset 1290 for pjproject/trunk/pjnath/src/pjnath/stun_session.c
- Timestamp:
- May 23, 2007 7:05:59 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/stun_session.c
r1284 r1290 268 268 } 269 269 270 need_auth = PJ_STUN_IS_REQUEST(msg->hdr.type) || 271 PJ_STUN_IS_SUCCESS_RESPONSE(msg->hdr.type); 270 need_auth = pj_stun_auth_valid_for_msg(msg); 272 271 273 272 if (sess->cred && sess->cred->type == PJ_STUN_AUTH_CRED_STATIC && … … 844 843 * is specified in the option. 845 844 */ 846 if ((options & PJ_STUN_NO_AUTHENTICATE) == 0 && tdata->auth_key.slen != 0) 845 if ((options & PJ_STUN_NO_AUTHENTICATE) == 0 && tdata->auth_key.slen != 0 846 && pj_stun_auth_valid_for_msg(msg)) 847 847 { 848 848 status = pj_stun_authenticate_response(pkt, pkt_len, msg,
Note: See TracChangeset
for help on using the changeset viewer.