in_ntoa interesting fault

Ricky Beam (root@defiant.mintel.net)
Mon, 10 Jun 1996 17:38:04 -0400 (EDT)


For some time now, I've been wondering why the icmp redirect messages I had
changed to use in_ntoa to spit out a readable IP address was giving me the
same thing three times -- I was not _that_ curious about it...

Well, today I built 2.0.0 (fresh, minus all the evil things I've done over the
past year) to get three different numbers. And then I changed them to in_ntoa
and what did I get but the first number three times!

Do I smell a gcc fart?!

gcc 2.7.2
libc 5.0.9 (so sue me!)
BFD 2.6.0.12

--Ricky

"This business is like the tobacco business. I wouldn't smoke for love or money
but by god I'll sell the shit outa it..." -- Virgil Wall