Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/berrange/tags/pull-qio-2017-11-…
Browse files Browse the repository at this point in the history
…28-1' into staging

Merge qio 2017/11/28 v1

# gpg: Signature made Tue 28 Nov 2017 10:49:08 GMT
# gpg:                using RSA key 0xBE86EBB415104FDF
# gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>"
# gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>"
# Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF

* remotes/berrange/tags/pull-qio-2017-11-28-1:
  sockets: avoid crash when cleaning up sockets for an invalid FD

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
pm215 committed Nov 28, 2017
2 parents c7e1f82 + 2d7ad7c commit a914f04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/qemu-sockets.c
Expand Up @@ -1079,6 +1079,9 @@ void socket_listen_cleanup(int fd, Error **errp)
SocketAddress *addr;

addr = socket_local_address(fd, errp);
if (!addr) {
return;
}

if (addr->type == SOCKET_ADDRESS_TYPE_UNIX
&& addr->u.q_unix.path) {
Expand Down

0 comments on commit a914f04

Please sign in to comment.