lkml.org 
[lkml]   [1999]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsendmsg() arguments

In Linux 2.0.x and other systems sendmsg() in its second argument msg
allows msg->msg_namelen to contain nonsense if msg->msg_name is NULL (what
kinda makes sense -- NULL in msg->msg_name means that there is no address
involved, so its size is meaningless). However 2.2.x checks msg->msg_namelen
instead -- if it's nonzero, msg->msg_name is considered to be an address
even if it's NULL (and therefore error is returned). Why?

--
Alex

----------------------------------------------------------------------
Excellent.. now give users the option to cut your hair you hippie!
-- Anonymous Coward


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

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.041 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site