aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorDavid Turner <>2009-04-13 17:58:45 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-13 17:58:45 -0700
commit669c47953c86f489d2a7ce8893bc9a5e1f0620e5 (patch)
treec02694997e920cda9e6c756984436d438fc6e5bf /android
parentfff1ae51e389c25e2b19cd087c5e19cd27d40163 (diff)
downloadexternal_qemu-669c47953c86f489d2a7ce8893bc9a5e1f0620e5.zip
external_qemu-669c47953c86f489d2a7ce8893bc9a5e1f0620e5.tar.gz
external_qemu-669c47953c86f489d2a7ce8893bc9a5e1f0620e5.tar.bz2
AI 145975: am: CL 145805 Fix a bug in android/console.c that prevented the console "redir add" command from working properly
Fix a bug in sock_address_init_resolve which caused a crashed when getaddrinfo() returned an error. Original author: digit Merged from: //branches/cupcake/... Automated import of CL 145975
Diffstat (limited to 'android')
-rw-r--r--android/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/console.c b/android/console.c
index 3a769c1..a8560f4 100644
--- a/android/console.c
+++ b/android/console.c
@@ -912,7 +912,7 @@ do_redir_add( ControlClient client, char* args )
return -1;
}
- if (!inet_strtoip("10.0.2.15", &guest_ip)) {
+ if (inet_strtoip("10.0.2.15", &guest_ip) < 0) {
control_write( client, "KO: unexpected internal failure when resolving 10.0.2.15\r\n" );
return -1;
}