Re: Serious locking bug in Linux NFS

Meelis Roos (mroos@tartu.cyber.ee)
Sun, 18 Oct 1998 00:04:55 +0300


>> 3) I got this message while starting statd:
>>
>> Oct 16 13:50:15 linuxserver ./statd[23846]: address mismatch: expected
>> 240.92.123.21, got 240.92.123.21
>>

HJL> Here is the relevant code:

HJL> if (lp->addr.s_addr != sin->sin_addr.s_addr)
HJL> dprintf(L_WARNING, "address mismatch: "
HJL> "expected %s, got %s\n",
HJL> inet_ntoa(lp->addr),
HJL> inet_ntoa(sin->sin_addr));

AFAIK inet_ntoa uses static buffer for its return value. Hence the last
value in printf call is copied to all inet_ntoa results.

-- 
Meelis Roos (mroos@tartu.cyber.ee)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/