Changeset 5170 for pjproject/trunk/pjnath/src/pjnath-test/stun.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath-test/stun.c
r4910 r5170 693 693 if (PJ_STUN_IS_REQUEST(msg->hdr.type)) { 694 694 pj_stun_auth_cred cred; 695 pj_status_t status ;695 pj_status_t status2; 696 696 697 697 pj_bzero(&cred, sizeof(cred)); … … 702 702 cred.data.static_cred.nonce = pj_str(v->nonce); 703 703 704 status = pj_stun_authenticate_request(buf, (unsigned)len, msg,704 status2 = pj_stun_authenticate_request(buf, (unsigned)len, msg, 705 705 &cred, pool, NULL, NULL); 706 if (status != PJ_SUCCESS) {706 if (status2 != PJ_SUCCESS) { 707 707 char errmsg[PJ_ERR_MSG_SIZE]; 708 pj_strerror(status , errmsg, sizeof(errmsg));708 pj_strerror(status2, errmsg, sizeof(errmsg)); 709 709 PJ_LOG(1,(THIS_FILE, 710 710 " Request authentication failed: %s", … … 715 715 716 716 } else if (PJ_STUN_IS_RESPONSE(msg->hdr.type)) { 717 pj_status_t status ;718 status = pj_stun_authenticate_response(buf, (unsigned)len,717 pj_status_t status2; 718 status2 = pj_stun_authenticate_response(buf, (unsigned)len, 719 719 msg, &key); 720 if (status != PJ_SUCCESS) {720 if (status2 != PJ_SUCCESS) { 721 721 char errmsg[PJ_ERR_MSG_SIZE]; 722 pj_strerror(status , errmsg, sizeof(errmsg));722 pj_strerror(status2, errmsg, sizeof(errmsg)); 723 723 PJ_LOG(1,(THIS_FILE, 724 724 " Response authentication failed: %s",
Note: See TracChangeset
for help on using the changeset viewer.