|
From: | Anthony Liguori |
Subject: | [Qemu-devel] Re: [RESEND][PATCH][STABLE] Fix corner case in chardev udp: parameter |
Date: | Mon, 08 Mar 2010 10:44:37 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0 |
On 03/07/2010 04:28 AM, Jan Kiszka wrote:
The missing '@' broke 'udp::<port>@:<port>' parsing. Signed-off-by: Jan Kiszka<address@hidden>
Applied to stable, thanks. Regards, Anthony Liguori
--- qemu-char.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 86c7c5a..0d8553d 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2333,7 +2333,7 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename) qemu_opt_set(opts, "backend", "udp"); if (sscanf(p, "%64[^:]:%32[^@,]%n", host, port,&pos)< 2) { host[0] = 0; - if (sscanf(p, ":%32[^,]%n", port,&pos)< 1) { + if (sscanf(p, ":%32[^@,]%n", port,&pos)< 1) { goto fail; } }
[Prev in Thread] | Current Thread | [Next in Thread] |