From: Olle Johansson Date: Tue, 3 Nov 2009 10:48:41 +0000 (+0000) Subject: Fixing bug before someone reports it... X-Git-Tag: 1.4.27-rc3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad9ff8acc24f6b2c7d6496dd634c941d4f0abd3;p=thirdparty%2Fasterisk.git Fixing bug before someone reports it... git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@227090 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6cea3193a3..f804da87b3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8646,7 +8646,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st memcpy(&testsin.sin_addr, hp->h_addr, sizeof(testsin.sin_addr)); if ( ast_apply_ha(global_contact_ha, &testsin) != AST_SENSE_ALLOW || ast_apply_ha(peer->contactha, &testsin) != AST_SENSE_ALLOW) { - ast_log(LOG_WARNING, "Host '%s' disallowed by contact ACL (violating IP %s)\n", n, ast_inet_ntoa(testsin)); + ast_log(LOG_WARNING, "Host '%s' disallowed by contact ACL (violating IP %s)\n", n, ast_inet_ntoa(testsin.sin_addr)); *peer->fullcontact = '\0'; ast_string_field_set(pvt, our_contact, ""); return PARSE_REGISTER_DENIED;