diff options
author | David Turner <> | 2009-04-12 14:57:55 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-12 14:57:55 -0700 |
commit | 850869d21220b9d5d14c45dd39e253f5a6f43080 (patch) | |
tree | c02694997e920cda9e6c756984436d438fc6e5bf /android/console.c | |
parent | 0f77b3a9904ef77bbfd4ed3d8ca964bc38a90f95 (diff) | |
download | external_qemu-850869d21220b9d5d14c45dd39e253f5a6f43080.zip external_qemu-850869d21220b9d5d14c45dd39e253f5a6f43080.tar.gz external_qemu-850869d21220b9d5d14c45dd39e253f5a6f43080.tar.bz2 |
AI 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.
BUG=1769061,1780001
Automated import of CL 145805
Diffstat (limited to 'android/console.c')
-rw-r--r-- | android/console.c | 2 |
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; } |