diff options
author | Geoffrey Thomas <geofft@ldpreload.com> | 2011-12-17 04:23:59 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-12-19 10:42:44 +0000 |
commit | b15ba6c95147e62671b29580c3b9056773cc496e (patch) | |
tree | 4d33646fa55fc44bcafeddb02dbd36e503b8d7b6 /net | |
parent | 7b011fbc050d442a20ed5d2a29724570c1557661 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/slirp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/slirp.c b/net/slirp.c index 6646ecb1c8..18e07ba609 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -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: |