res_pjsip_acl: Fix another case of assuming a contact will always contain a URI.
authorJoshua Colp <jcolp@digium.com>
Tue, 7 Jan 2014 19:56:18 +0000 (19:56 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 7 Jan 2014 19:56:18 +0000 (19:56 +0000)
........

Merged revisions 405034 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@405035 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip_acl.c

index 8d632ec..48c2ea4 100644 (file)
@@ -138,7 +138,7 @@ static int extract_contact_addr(pjsip_contact_hdr *contact, struct ast_sockaddr
        pjsip_sip_uri *sip_uri;
        char host[256];
 
-       if (!contact) {
+       if (!contact || contact->star) {
                return 0;
        }
        if (!PJSIP_URI_SCHEME_IS_SIP(contact->uri) && !PJSIP_URI_SCHEME_IS_SIPS(contact->uri)) {