| Submitter | Amos Kong |
|---|---|
| Date | July 17, 2012, 3:45 p.m. |
| Message ID | <1342539951-30915-2-git-send-email-akong@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/171465/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/qemu-sockets.c b/qemu-sockets.c index 2ae715d..697e5d8 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -178,9 +178,7 @@ int inet_listen_opts(QemuOpts *opts, int port_offset, Error **errp) fprintf(stderr,"%s: bind(%s,%s,%d): %s\n", __FUNCTION__, inet_strfamily(e->ai_family), uaddr, inet_getport(e), strerror(errno)); - if (!e->ai_next) { - error_set(errp, QERR_SOCKET_BIND_FAILED); - } + error_set(errp, QERR_SOCKET_BIND_FAILED); } } closesocket(slisten);
It's aleady in the end of loop, error should be set. Signed-off-by: Amos Kong <akong@redhat.com> --- qemu-sockets.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)