[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [7206] net: Fix -net socket,listen (Jan Kiszka)
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [7206] net: Fix -net socket,listen (Jan Kiszka) |
Date: |
Tue, 21 Apr 2009 20:47:56 +0000 |
Revision: 7206
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7206
Author: aliguori
Date: 2009-04-21 20:47:55 +0000 (Tue, 21 Apr 2009)
Log Message:
-----------
net: Fix -net socket,listen (Jan Kiszka)
In case no symbolic name is provided when requesting VLAN connection via
listening TCP socket ('-net socket,listen=...'), qemu crashes. This
fixes the cause.
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
branches/stable_0_10/net.c
Modified: branches/stable_0_10/net.c
===================================================================
--- branches/stable_0_10/net.c 2009-04-21 20:47:51 UTC (rev 7205)
+++ branches/stable_0_10/net.c 2009-04-21 20:47:55 UTC (rev 7206)
@@ -1468,7 +1468,7 @@
}
s->vlan = vlan;
s->model = strdup(model);
- s->name = strdup(name);
+ s->name = name ? strdup(name) : NULL;
s->fd = fd;
qemu_set_fd_handler(fd, net_socket_accept, NULL, s);
return 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [7206] net: Fix -net socket,listen (Jan Kiszka),
Anthony Liguori <=