aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2011-02-09 13:50:00 -0800
committerAndroid Code Review <code-review@android.com>2011-02-09 13:50:00 -0800
commitd98942188f1b190b2e2a2a7a4cb11bc4f8a22739 (patch)
tree760b9c298c8fe37411e174f7bd214ff644cda0ec
parent1b0e2cf0d8b9b95ca2615adcc30dad4c481b88fc (diff)
parentf06d4c7c55e8b60c27c9be6f824eb41464a0926d (diff)
downloadexternal_qemu-d98942188f1b190b2e2a2a7a4cb11bc4f8a22739.zip
external_qemu-d98942188f1b190b2e2a2a7a4cb11bc4f8a22739.tar.gz
external_qemu-d98942188f1b190b2e2a2a7a4cb11bc4f8a22739.tar.bz2
Merge ""Negative" DNS IP address fix"
-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;