ares-test.cc: Handle nullptr in AddrInfo ostream. (#268)

The const AddrInfo& argument to operator<< overload for AddrInfo can be
a nullptr unique_ptr. Handle this explicitly by printing {nullptr} if
the rest of the function cannot be safely executed.

Fix-by: Dan Noé <dpn@google.com>
pull/269/head
Dan Noé 5 years ago committed by Brad House
parent 33ed2aa6d1
commit 1cd0a36f6e
Loading…
Cancel
Save