<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>5055</bug_id>
          
          <creation_ts>2004-08-24 11:37:53 +0400</creation_ts>
          <short_desc>iptables returns &quot;invalid pointer&quot; when using host name in the rule</short_desc>
          <delta_ts>2005-07-13 15:46:41 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>iptables</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="dd">dd</reporter>
          <assigned_to name="Alexey Voinov">voins</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18306</commentid>
    <comment_count>0</comment_count>
    <who name="dd">dd</who>
    <bug_when>2004-08-24 11:37:53 +0400</bug_when>
    <thetext>iptables works fine but returns &quot;invalid pointer&quot; when the rule contains host
name which resolves to multiple addresses.
Steps to Reproduce:
$ host rbc.ru
rbc.ru has address 194.186.36.175
rbc.ru has address 194.186.36.178
rbc.ru has address 62.118.249.66
rbc.ru has address 62.118.249.80
rbc.ru has address 194.186.36.150
$ sudo iptables -A FORWARD -s 192.168.0.55 -d rbc.ru -j ACCEPT
Actual Results:  
free(): invalid pointer 0x804c0a4!
$ sudo service iptables status | grep 55
ACCEPT     all  --  192.168.0.55         62.118.249.80
ACCEPT     all  --  192.168.0.55         194.186.36.150
ACCEPT     all  --  192.168.0.55         194.186.36.175
ACCEPT     all  --  192.168.0.55         194.186.36.178
ACCEPT     all  --  192.168.0.55         62.118.249.66

Expected Results:  
$ sudo service iptables status | grep 55
ACCEPT     all  --  192.168.0.55         62.118.249.80
ACCEPT     all  --  192.168.0.55         194.186.36.150
ACCEPT     all  --  192.168.0.55         194.186.36.175
ACCEPT     all  --  192.168.0.55         194.186.36.178
ACCEPT     all  --  192.168.0.55         62.118.249.66</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18685</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Voinov">voins</who>
    <bug_when>2004-09-08 16:18:19 +0400</bug_when>
    <thetext>fixed in iptables-1.2.11-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>