[exim-dev] [Bug 770] Daemon should reinitialize len before c…

Top Page
Delete this message
Reply to this message
Author: Kjetil Torgrim Homme
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 770] Daemon should reinitialize len before calling accept()
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=770




--- Comment #3 from Kjetil Torgrim Homme <kjetilho@???> 2008-11-19 23:03:29 ---
it's not a calculation, it's a static assignment, since the size is always
known during compilation. if you look at the latest Single Unix Specification,
you'll see:

address_len
Points to a socklen_t structure which on input specifies the length
of the supplied sockaddr structure, and on output specifies the length
of the stored address.

(http://www.opengroup.org/onlinepubs/009695399/functions/accept.html)

also note that the parameter is *not* declared as const, which it should be if
the function isn't allowed to change it.



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email