[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/19] char-socket: fix error reporting
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 01/19] char-socket: fix error reporting |
Date: |
Mon, 18 Feb 2013 15:47:58 -0600 |
Right now the inet connect code tries all available addresses but until one
doesn't fail. It passes local_err each time without clearing it from the
previous failure. This can trigger an assert since the inet connect code
tries to set an error on an object != NULL.
Signed-off-by: Anthony Liguori <address@hidden>
---
util/qemu-sockets.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index 1350ccc..3f12296 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -373,6 +373,10 @@ int inet_connect_opts(QemuOpts *opts, Error **errp,
}
for (e = res; e != NULL; e = e->ai_next) {
+ if (error_is_set(errp)) {
+ error_free(*errp);
+ *errp = NULL;
+ }
if (connect_state != NULL) {
connect_state->current_addr = e;
}
--
1.8.0
- [Qemu-devel] [PATCH 15/19] qemu-char: move baum registration to baum.c, (continued)
- [Qemu-devel] [PATCH 15/19] qemu-char: move baum registration to baum.c, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 16/19] qemu-char: move msmouse registeration to msmouse.c, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 17/19] qemu-char: move text console init to console.c, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 02/19] qemu-char: remove dead/confusing logic with nb_stdio_clients, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 04/19] qemu-char: convert fd_chr to use a GIOChannel, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 05/19] qemu-char: convert pty to GIOChannel, Anthony Liguori, 2013/02/19
- Re: [Qemu-devel] [PATCH 00/19] chardev flow control, Amit Shah, 2013/02/19
- Re: [Qemu-devel] [PATCH 00/19] chardev flow control, Hans de Goede, 2013/02/19
- [Qemu-devel] [PATCH 03/19] char: add IOWatchPoll support, Anthony Liguori, 2013/02/19
- [Qemu-devel] [PATCH 01/19] char-socket: fix error reporting,
Anthony Liguori <=