summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKeqian Zhu2020-11-23 07:29:54 +0100
committerJason Wang2020-11-24 03:40:17 +0100
commit9925990d01a92564af55f6f69d0f5f59b47609b1 (patch)
treeb0d7a180756d1560a4dfa4ff294fd8f573c07a23 /net
parenttap: fix a memory leak (diff)
downloadqemu-9925990d01a92564af55f6f69d0f5f59b47609b1.tar.gz
qemu-9925990d01a92564af55f6f69d0f5f59b47609b1.tar.xz
qemu-9925990d01a92564af55f6f69d0f5f59b47609b1.zip
net: Use correct default-path macro for downscript
Fixes: 63c4db4c2e6d (net: relocate paths to helpers and scripts) Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/tap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tap.c b/net/tap.c
index fe95fa7073..b7512853f4 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -953,7 +953,8 @@ free_fail:
script = default_script = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
}
if (!downscript) {
- downscript = default_downscript = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
+ downscript = default_downscript =
+ get_relocated_path(DEFAULT_NETWORK_DOWN_SCRIPT);
}
if (tap->has_ifname) {