Changeset 1539 for pjproject/trunk/pjsip/src/pjsip/sip_auth_client.c
- Timestamp:
- Nov 3, 2007 1:46:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_auth_client.c
r1514 r1539 902 902 pjsip_tx_data *tdata; 903 903 const pjsip_hdr *hdr; 904 unsigned chal_cnt; 904 905 pjsip_via_hdr *via; 905 906 pj_status_t status; … … 922 923 */ 923 924 hdr = rdata->msg_info.msg->hdr.next; 925 chal_cnt = 0; 924 926 while (hdr != &rdata->msg_info.msg->hdr) { 925 927 pjsip_cached_auth *cached_auth; … … 938 940 939 941 hchal = (const pjsip_www_authenticate_hdr*) hdr; 942 ++chal_cnt; 940 943 941 944 /* Find authentication session for this realm, create a new one … … 970 973 } 971 974 975 /* Check if challenge is present */ 976 if (chal_cnt == 0) 977 return PJSIP_EAUTHNOCHAL; 972 978 973 979 /* Remove branch param in Via header. */
Note: See TracChangeset
for help on using the changeset viewer.