Re: [BUG] Suspected bug in getpeername and getsockname

From: kuznet@ms2.inr.ac.ru
Date: Thu Jan 17 2002 - 15:24:27 EST


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/



This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 21:00:22 EST