From 7d9a2705e7ae6d8c4b1d9d5b4e2a67ab88c19044 Mon Sep 17 00:00:00 2001 From: David Turner <> Date: Tue, 14 Apr 2009 14:43:24 -0700 Subject: AI 146183: am: CL 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/... Original author: android-build Automated import of CL 146183 --- android/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android/console.c') 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; } -- cgit v1.1