aboutsummaryrefslogtreecommitdiffstats
path: root/slirp-android/slirp.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp-android/slirp.c')
-rw-r--r--slirp-android/slirp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp-android/slirp.c b/slirp-android/slirp.c
index dc94a99..e3c4c42 100644
--- a/slirp-android/slirp.c
+++ b/slirp-android/slirp.c
@@ -81,7 +81,7 @@ int slirp_add_dns_server(const SockAddress* new_dns_addr)
return -1;
dns_ip = sock_address_get_ip(new_dns_addr);
- if (dns_ip < 0)
+ if (dns_ip == -1)
return -1;
dns_addr[dns_addr_count++] = dns_ip;