[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stegotorus/master] Correct call to getaddrinfo()
commit bdbd5be5d6139d6b3a1579e47d5724dc8fa673da
Author: Steven Cheung <steven.cheung@xxxxxxx>
Date: Fri Jun 15 14:47:47 2012 -0700
Correct call to getaddrinfo()
---
src/steg/http.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/steg/http.cc b/src/steg/http.cc
index d8dbf5e..d079292 100644
--- a/src/steg/http.cc
+++ b/src/steg/http.cc
@@ -222,7 +222,7 @@ lookup_peer_name_from_ip(const char* p_ip, char* p_name) {
char buf[128];
hint.ai_flags = AI_CANONNAME;
- hint.ai_family = 0;
+ hint.ai_family = PF_UNSPEC;
hint.ai_socktype = 0;
hint.ai_protocol = 0;
hint.ai_addrlen = 0;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits