diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2016-09-29 12:00:53 +0200 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-09-29 13:21:16 +0200 |
commit | ccd2a3eda24230df550e9880f4340fc6341c8f52 (patch) | |
tree | ab5d5e0944c68b7c30ae34daade8947dddee322c /sysdep/unix | |
parent | 79e2293ab2abbd92bb3326a95759a4ca32d9af81 (diff) |
Kernel socket missing err_hook fix
Thanks to Tim Weippert for bugreport.
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 120eb906..3ceadd98 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1857,7 +1857,7 @@ void sk_err(sock *s, int revents) { int se = 0, sse = sizeof(se); - if (revents & POLLERR) + if ((s->type != SK_MAGIC) && (revents & POLLERR)) if (getsockopt(s->fd, SOL_SOCKET, SO_ERROR, &se, &sse) < 0) { log(L_ERR "IO: Socket error: SO_ERROR: %m"); |