commit | 2549ecc6bd51cf277652371d70af87828b593c3f | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 15:52:59 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 15:52:59 2019 +0900 |
tree | 6de896953b74d6a8fc497c2527ef118e467aced5 | |
parent | 5e81d4d8f4a845f004de0c3d5510497bf24c9881 [diff] |
Fix bogus error checking on unique_fd The expression "!fd" calls the implicit conversion to int, but comparing the raw fd against 0 does not work, since open() and other POSIX calls returning a file descriptor use -1 to signal an error. Test: m libnetd_resolv Test: sync, then atest resolver_integration_test Change-Id: I876fe64a5507a0863151b6807990fdfa72e2973e