Re: [BUG] Suspected bug in getpeername and getsockname

David S. Miller (davem@redhat.com)
Thu, 17 Jan 2002 15:26:19 -0800 (PST)


From: "Balbir Singh" <balbir_soni@hotmail.com>
Date: Thu, 17 Jan 2002 15:20:14 -0800

Depending on the length passed to me in getpeername,
I fill in the correct members and return it back.

What broken protocol works like this?

Even if we do not pass the value passed by the user
to the protocol specific code, I would like to cleanup
the code in socket.c to check for invalid values
upfront and save time and space in all the calls.

Optimizing error cases never bears any fruit.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/