forked from OSchip/llvm-project
Revert "[msan] Fix msan_test broken after r299884."
This does not fix the test, it still fails to bind. This reverts commit r300150. llvm-svn: 300249
This commit is contained in:
parent
54ce07d093
commit
958cd8f993
|
@ -899,7 +899,7 @@ class SocketAddr4 : public SocketAddr {
|
|||
memset(&sai_, 0, sizeof(sai_));
|
||||
sai_.sin_family = AF_INET;
|
||||
sai_.sin_port = port;
|
||||
sai_.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
sai_.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
}
|
||||
|
||||
sockaddr *ptr() override { return reinterpret_cast<sockaddr *>(&sai_); }
|
||||
|
@ -917,7 +917,7 @@ class SocketAddr6 : public SocketAddr {
|
|||
memset(&sai_, 0, sizeof(sai_));
|
||||
sai_.sin6_family = AF_INET6;
|
||||
sai_.sin6_port = port;
|
||||
sai_.sin6_addr = in6addr_any;
|
||||
sai_.sin6_addr = in6addr_loopback;
|
||||
}
|
||||
|
||||
sockaddr *ptr() override { return reinterpret_cast<sockaddr *>(&sai_); }
|
||||
|
|
Loading…
Reference in New Issue