listen: allocate sockaddr_storage struct for accept()

The generic sockaddr struct is too small for some addresses.  For
accept(), we have to allocate a sockaddr_storage struct on the stack,
which is large enough for all addresses.
This commit is contained in:
Max Kellermann
2009-02-28 15:20:35 +01:00
parent 5c10d2ded7
commit 1bb0124b77
2 changed files with 6 additions and 4 deletions

1
NEWS
View File

@@ -41,6 +41,7 @@ ver 0.15 - (200?/??/??)
* playlist: recalculate the queued song after random is toggled
* playlist: don't unpause on delete
* daemon: ignore "user" setting if already running as that user
* listen: fix broken client IP addresses in log
ver 0.14.2 (2009/02/13)