slirp: Fix typo in net_slirp_hostfwd_remove
authorGeoffrey Thomas <geofft@ldpreload.com>
Sat, 17 Dec 2011 09:23:59 +0000 (04:23 -0500)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 19 Dec 2011 10:42:44 +0000 (10:42 +0000)
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>
net/slirp.c

index 6646ecb1c800d31b2e80cdb6f5855b254cfd1006..18e07ba609c3be93757d96364583ee65a9180f33 100644 (file)
@@ -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: