commit | c62a4b5a7aede760b06298f4b641b5a9768f5744 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Jan 08 17:28:46 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Thu Jan 08 17:28:46 2015 -0800 |
tree | 56b6a08a0c889fbc678cbdc2e46700e790b853b7 | |
parent | 4c47fc4ed39dff497d4c56ba864b3a3f659250f4 [diff] [blame] |
Fix freeaddrinfo(NULL). Bug: https://code.google.com/p/android/issues/detail?id=13228 Change-Id: I5e3b126d90d750a93ac0b8872198e50ba047e603
diff --git a/tests/netdb_test.cpp b/tests/netdb_test.cpp index ab5b487..5660bbd 100644 --- a/tests/netdb_test.cpp +++ b/tests/netdb_test.cpp
@@ -23,6 +23,11 @@ #include <sys/socket.h> #include <netinet/in.h> +// https://code.google.com/p/android/issues/detail?id=13228 +TEST(netdb, freeaddrinfo_NULL) { + freeaddrinfo(NULL); +} + TEST(netdb, getaddrinfo_NULL_host) { // It's okay for the host argument to be NULL, as long as service isn't. addrinfo* ai = NULL;