[Asterisk-code-review] res pjsip:  Validate that contact uris start with sip: or sips: (asterisk[master])
    George Joseph 
    asteriskteam at digium.com
       
    Thu Apr 23 11:54:59 CDT 2015
    
    
  
Hello Joshua Colp,
I'd like you to reexamine a change.  Please visit
    https://gerrit.asterisk.org/233
to look at the new patch set (#3).
Change subject: res_pjsip:  Validate that contact uris start with sip: or sips:
......................................................................
res_pjsip:  Validate that contact uris start with sip: or sips:
Currently we use pjsip_parse_hdr to validate contact uris but it
appears that it allows uris without a scheme if there's a port
supplied.  I.E myexample.com will fail but myexample.com:5060 will
pass even though it has no scheme.  This causes SEGVs later on
whenever the uri is used.
To prevent this, permanent_contact_validate has been updated to check
that the scheme is either 'sip' or 'sips'.
2 uses of possibly-null endpoint have also been fixed in
create_out_of_dialog_request.
ASTERISK-24999
Change-Id: Ifc17d16a4923e1045d37fe51e43bbe29fa556ca2
Reported-by: Brad Latus
---
M res/res_pjsip.c
M res/res_pjsip/location.c
2 files changed, 11 insertions(+), 6 deletions(-)
  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/33/233/3
-- 
To view, visit https://gerrit.asterisk.org/233
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ifc17d16a4923e1045d37fe51e43bbe29fa556ca2
Gerrit-PatchSet: 3
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: George Joseph <george.joseph at fairview5.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
    
    
More information about the asterisk-code-review
mailing list