apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Bug to fix or not in 1.2.x - recvfrom?
Date Mon, 15 Oct 2007 06:17:46 GMT
[more details about that universal recvfrom issue in my prior note, I thought
I had sent this hours ago...]

     apr_sockaddr_ip_get(&ip_addr, from);
     fromport = from->port;
     ABTS_STR_EQUAL(tc, addr, ip_addr);
     ABTS_INT_EQUAL(tc, 7771, fromport);

Because we weren't randomizing this, we hadn't noted that fromport was
not being filled in by apr_socket_recvfrom() (although the address is).

On Linux, ipv6 loopback enabled;

./testall -v testsockets
testsockets         : |Line 178: expected <7771>, but saw <4242>
FAILED 1 of 6

Should this test be corrected, and is this a bug that should be addressed
in the 1.2.x timeframe?


View raw message