diff options
author | Elliott Hughes <enh@google.com> | 2015-07-18 12:21:30 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-07-21 15:25:14 -0700 |
commit | a5268097f605452a362ec0d49f9b3dd9174c1e92 (patch) | |
tree | 2be312cbca0b49375c67d451a2648042d3efa370 /adb_client.cpp | |
parent | ebf3aaf3477c75c6bbc4b2c49542e6fe7a91dce7 (diff) | |
download | adb-a5268097f605452a362ec0d49f9b3dd9174c1e92.tar.gz |
Recognize IPv6 addresses for "adb connect".
Bug: http://b/22559299
Change-Id: I32891d706b5010c38db84a056e76dd279b780f75
Diffstat (limited to 'adb_client.cpp')
-rw-r--r-- | adb_client.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/adb_client.cpp b/adb_client.cpp index ef9a586..9a1b761 100644 --- a/adb_client.cpp +++ b/adb_client.cpp @@ -277,8 +277,7 @@ bool adb_query(const std::string& service, std::string* result, std::string* err D("adb_query: %s\n", service.c_str()); int fd = adb_connect(service, error); if (fd < 0) { - fprintf(stderr,"error: %s\n", error->c_str()); - return 0; + return false; } result->clear(); |