mirror of https://github.com/aria2/aria2
2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed segmentation fault when running unit tests on opensolaris. * src/SocketCore.cc * src/bittorrent_helper.ccpull/1/head
parent
a915681547
commit
2141656346
|
@ -1,3 +1,9 @@
|
|||
2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed segmentation fault when running unit tests on opensolaris.
|
||||
* src/SocketCore.cc
|
||||
* src/bittorrent_helper.cc
|
||||
|
||||
2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Updated Russian translation. Thanks to all translators.
|
||||
|
|
|
@ -288,7 +288,7 @@ void SocketCore::bind(uint16_t port, int flags)
|
|||
int s;
|
||||
s = getnameinfo(reinterpret_cast<const struct sockaddr*>(&(*i).first),
|
||||
(*i).second,
|
||||
host, NI_MAXHOST, 0, NI_MAXSERV,
|
||||
host, NI_MAXHOST, 0, 0,
|
||||
NI_NUMERICHOST);
|
||||
if(s) {
|
||||
error = gai_strerror(s);
|
||||
|
@ -1210,7 +1210,7 @@ void SocketCore::bindAddress(const std::string& iface)
|
|||
int s;
|
||||
s = getnameinfo(reinterpret_cast<const struct sockaddr*>(&(*i).first),
|
||||
(*i).second,
|
||||
host, NI_MAXHOST, 0, NI_MAXSERV,
|
||||
host, NI_MAXHOST, 0, 0,
|
||||
NI_NUMERICHOST);
|
||||
if(s == 0) {
|
||||
if(LogFactory::getInstance()->debug()) {
|
||||
|
|
|
@ -815,7 +815,7 @@ std::pair<std::string, uint16_t> unpackcompact(const unsigned char* compact)
|
|||
char host[NI_MAXHOST];
|
||||
int s;
|
||||
s = getnameinfo(reinterpret_cast<const struct sockaddr*>(&in), sizeof(in),
|
||||
host, NI_MAXHOST, 0, NI_MAXSERV,
|
||||
host, NI_MAXHOST, 0, 0,
|
||||
NI_NUMERICHOST);
|
||||
if(s) {
|
||||
return std::pair<std::string, uint16_t>();
|
||||
|
|
Loading…
Reference in New Issue