mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Revert "net: Move NetClientState.info_str to dynamic allocations"
Several issues has been reported for query-netdev info
series. Consider it's late in the rc, this reverts commit
commit 59b5437eb7
.
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
603f2f7c6c
commit
56e6f594bf
11 changed files with 49 additions and 47 deletions
|
@ -730,7 +730,8 @@ int net_init_l2tpv3(const Netdev *netdev,
|
|||
QAPI_CLONE_MEMBERS(NetdevL2TPv3Options,
|
||||
&nc->stored_config->u.l2tpv3, l2tpv3);
|
||||
|
||||
s->nc.info_str = g_strdup_printf("l2tpv3: connected");
|
||||
snprintf(s->nc.info_str, sizeof(s->nc.info_str),
|
||||
"l2tpv3: connected");
|
||||
return 0;
|
||||
outerr:
|
||||
qemu_del_net_client(nc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue