res_pjsip_acl: Fix another case of assuming a contact will always contain a URI.
[asterisk/asterisk.git] / 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)) {