projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e57daac
)
Give getsockopt() a reference to a socklen_t.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 28 Jun 2014 19:54:34 +0000
(21:54 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 28 Jun 2014 19:54:34 +0000
(21:54 +0200)
src/net_socket.c
patch
|
blob
|
history
diff --git
a/src/net_socket.c
b/src/net_socket.c
index 3b6399bfc0cb9727a6e236700d2c24760ac18e33..b2297af4198231dea0f069d116161fb6a2b04f93 100644
(file)
--- a/
src/net_socket.c
+++ b/
src/net_socket.c
@@
-421,7
+421,7
@@
static void handle_meta_io(void *data, int flags) {
if (!socknotconn(sockerrno))
socket_error = sockerrno;
else {
-
in
t len = sizeof socket_error;
+
socklen_
t len = sizeof socket_error;
getsockopt(c->socket, SOL_SOCKET, SO_ERROR, (void *)&socket_error, &len);
}
if (socket_error) {