git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
dec8f34
)
Fix after afe57947
318/head
author
svost
<ya.nowa@yandex.ru>
Sat, 16 Apr 2016 08:56:44 +0000 (11:56 +0300)
committer
svost
<ya.nowa@yandex.ru>
Sat, 16 Apr 2016 08:56:44 +0000 (11:56 +0300)
src/stun.cpp
patch
|
blob
|
history
diff --git
a/src/stun.cpp
b/src/stun.cpp
index
f344de0
..
6122325
100644
(file)
--- a/
src/stun.cpp
+++ b/
src/stun.cpp
@@
-515,7
+515,7
@@
static int StunRequest(const char *host, uint16_t port, struct sockaddr_in *mapp
client.sin_addr.s_addr = htonl(INADDR_ANY);
int rc = -3;
- if (::bind(sock, (struct sockaddr*)&client, sizeof(client)) != INVALID_SOCKET)
+ if (::bind(sock, (struct sockaddr*)&client, sizeof(client)) != SOCKET_ERROR)
rc = StunRequest2(sock, &server, mapped);
CloseSocket(sock);
return rc;