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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Simon Arlott
Dátum:  
Címzett: exim-dev
Tárgy: [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