Ignore:
Timestamp:
Dec 15, 2006 11:33:34 AM (14 years ago)
Author:
bennylp
Message:

Fixed ticket #45: Accept, Allow, and Supported header may contain empty sequence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_parser.c

    r839 r854  
    15331533                                     pj_scanner *scanner) 
    15341534{ 
     1535    /* Some header fields allow empty elements in the value: 
     1536     *   Accept, Allow, Supported 
     1537     */ 
     1538    if (*scanner->curptr == '\r' || *scanner->curptr == '\n') { 
     1539        goto end; 
     1540    } 
     1541 
    15351542    pj_scan_get( scanner, &pjsip_NOT_COMMA_OR_NEWLINE, &hdr->values[0]); 
    15361543    hdr->count++; 
     
    15421549        hdr->count++; 
    15431550    } 
     1551 
     1552end: 
    15441553    parse_hdr_end(scanner); 
    15451554} 
Note: See TracChangeset for help on using the changeset viewer.