mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
slirp: Fix typo in net_slirp_hostfwd_remove
Report an error when err is nonzero, not when it is zero. Signed-off-by: Geoffrey Thomas <geofft@ldpreload.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
7b011fbc05
commit
b15ba6c951
@ -351,7 +351,7 @@ void net_slirp_hostfwd_remove(Monitor *mon, const QDict *qdict)
|
||||
host_addr, host_port);
|
||||
|
||||
monitor_printf(mon, "host forwarding rule for %s %s\n", src_str,
|
||||
err ? "removed" : "not found");
|
||||
err ? "not found" : "removed");
|
||||
return;
|
||||
|
||||
fail_syntax:
|
||||
|
Loading…
Reference in New Issue
Block a user