]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: Fix IP-addr in warning when rejecting a contact ACL.
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 13 Aug 2013 18:34:39 +0000 (18:34 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 13 Aug 2013 18:34:39 +0000 (18:34 +0000)
Patches:
    reviewboard-2155.patch uploaded by Paul Belanger
Review: https://reviewboard.asterisk.org/r/2155/
........

Merged revisions 396579 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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

channels/chan_sip.c

index 41a33c78c5a5fbe7f7d844ad5d92a89b86a8172e..f0455375a72ce3a950bfd71632db95fb2a172362 100644 (file)
@@ -16022,7 +16022,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
        if (ast_apply_acl(sip_cfg.contact_acl, &peer->addr, "SIP contact ACL: ") != AST_SENSE_ALLOW ||
                        ast_apply_acl(peer->contactacl, &peer->addr, "SIP contact ACL: ") != AST_SENSE_ALLOW) {
                ast_log(LOG_WARNING, "Domain '%s' disallowed by contact ACL (violating IP %s)\n", hostport,
-                       ast_sockaddr_stringify_addr(&testsa));
+                               ast_sockaddr_stringify_addr(&peer->addr));
                ast_string_field_set(peer, fullcontact, "");
                ast_string_field_set(pvt, our_contact, "");
                return PARSE_REGISTER_DENIED;