summaryrefslogtreecommitdiffstats
path: root/hw/pci.c
diff options
context:
space:
mode:
authorAnthony Liguori2012-09-05 20:52:49 +0200
committerAnthony Liguori2012-09-10 17:57:52 +0200
commit455aa1e0818653c41fd794435b982426ce21ba2f (patch)
tree6146686447d40d4bfc2fd93bf893735037007c4f /hw/pci.c
parentuse --libexecdir instead of ignoring it first and reinventing it later (diff)
downloadqemu-455aa1e0818653c41fd794435b982426ce21ba2f.tar.gz
qemu-455aa1e0818653c41fd794435b982426ce21ba2f.tar.xz
qemu-455aa1e0818653c41fd794435b982426ce21ba2f.zip
socket: don't attempt to reconnect a TCP socket in server mode
Commit c3767ed0eb5d0bb25fe409ae5dec06e3411ff1b6 introduced a possible SEGV when using a socket chardev with server=on because it assumes that all TCP sockets are in client mode. This patch adds a check to only reconnect when in client mode. Cc: Lei Li <lilei@linux.vnet.ibm.com> Reported-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.c')
0 files changed, 0 insertions, 0 deletions