Re: [BUG] Suspected bug in getpeername and getsockname

kuznet@ms2.inr.ac.ru
Thu, 17 Jan 2002 23:24:27 +0300 (MSK)


Hello!

> The protocol specific code would like to look at what
> the user passed.

For what purpose?

Protocol has no rights to use this length, because user has right
to pass buffer of any length and address will be simply truncated.
And the truncation is made by net/socket.c, so that protocols need
not worry about this.

Alexey
-
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/