projects
/
tinc
/ 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
3b6399b
..
b2297af
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) {