- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip/src/pjsip/sip_parser.c
r5202 r5513 328 328 status = pj_cis_dup(&pconst.pjsip_VIA_PARAM_SPEC_ESC, &pconst.pjsip_TOKEN_SPEC_ESC); 329 329 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 330 pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC , ":");330 pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC_ESC, ":"); 331 331 332 332 status = pj_cis_dup(&pconst.pjsip_HOST_SPEC, &pconst.pjsip_ALNUM_SPEC); … … 1150 1150 pvalue->slen -= 2; 1151 1151 } 1152 } else if (*scanner->curptr == '[') {1152 // } else if (*scanner->curptr == '[') { 1153 1153 /* pvalue can be a quoted IPv6; in this case, the 1154 1154 * '[' and ']' quote characters are to be removed 1155 * from the pvalue. 1155 * from the pvalue. 1156 * 1157 * Update: this seems to be unnecessary and may cause 1158 * parsing error for cases such as IPv6 reference with 1159 * port number. 1156 1160 */ 1157 pj_scan_get_char(scanner);1158 pj_scan_get_until_ch(scanner, ']', pvalue);1159 pj_scan_get_char(scanner);1161 // pj_scan_get_char(scanner); 1162 // pj_scan_get_until_ch(scanner, ']', pvalue); 1163 // pj_scan_get_char(scanner); 1160 1164 } else if(pj_cis_match(spec, *scanner->curptr)) { 1161 1165 parser_get_and_unescape(scanner, pool, spec, esc_spec, pvalue); … … 1672 1676 hdr->count++; 1673 1677 1674 while (*scanner->curptr == ',') { 1678 while ((hdr->count < PJSIP_GENERIC_ARRAY_MAX_COUNT) && 1679 (*scanner->curptr == ',')) 1680 { 1675 1681 pj_scan_get_char(scanner); 1676 1682 pj_scan_get( scanner, &pconst.pjsip_NOT_COMMA_OR_NEWLINE, 1677 1683 &hdr->values[hdr->count]); 1678 1684 hdr->count++; 1679 1680 if (hdr->count >= PJSIP_GENERIC_ARRAY_MAX_COUNT)1681 break;1682 1685 } 1683 1686
Note: See TracChangeset
for help on using the changeset viewer.