]> git.proxmox.com Git - qemu.git/commit
slirp: fix structure initialization in tcp_listen()
authorJuha Riihimäki <juha.riihimaki@nokia.com>
Tue, 13 Apr 2010 06:16:55 +0000 (09:16 +0300)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 20 Apr 2010 16:42:38 +0000 (16:42 +0000)
commitab07b980c442b4f94f8fe9c236d7702c19bf2c74
tree5c486b61f78a58a16c699925c2d2833bc8747993
parentd3538b45ea88e82d1b01959b4ca55d3696b71cb2
slirp: fix structure initialization in tcp_listen()

A data structure of type sockaddr_in is allocated from stack but not
properly initialized. This may lead to a failure in the bind() call
later on. Fixed by filling the contents of the structure with zeroes
before using it.

Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
slirp/socket.c