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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Simon Arlott
Date:  
À: exim-dev
Sujet: [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 #4 from Simon Arlott <bugzilla.exim.simon@???> 2008-11-19 23:09:19 ---
The Linux man pages for accept(2) specify: "The addrlen argument is a
value-result argument: it should initially contain the size of the
structure pointed to by addr; on return it will contain the actual length (in
bytes) of the address returned."

So addrlen should always be re-initialised every time (assuming it may get
changed).


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