diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 12743933e793e182efd3220f50c7bf407710ca02..9e752ff0944ea6f061cc3a4cf2b6f3c289f5f755 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8150,8 +8150,10 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr
 	build_contact(p);
 	peer = find_peer(name, NULL, 1);
 	if (!(peer && ast_apply_ha(peer->ha, sin))) {
+		/* Peer fails ACL check */
 		if (peer)
 			ASTOBJ_UNREF(peer, sip_destroy_peer);
+		peer = NULL;
 	}
 	if (peer) {
 		/* Set Frame packetization */