From f23b2fc25d05134ce9a3811043df274ee4685720 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 20 Jul 2017 10:24:18 +0200 Subject: [PATCH] Use 4 spaces and not 2 spaces (cleanup of 3d22b24244d4480661a1c17c8d9d67c33f82706b) --- .../src/main/c/netty_unix_socket.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transport-native-unix-common/src/main/c/netty_unix_socket.c b/transport-native-unix-common/src/main/c/netty_unix_socket.c index 519f701c83..96879352ff 100644 --- a/transport-native-unix-common/src/main/c/netty_unix_socket.c +++ b/transport-native-unix-common/src/main/c/netty_unix_socket.c @@ -213,10 +213,10 @@ static jint _socket(JNIEnv* env, jclass clazz, int type) { int optval = 0; if (netty_unix_socket_setOption0(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval, sizeof(optval)) < 0) { if (errno != EAFNOSUPPORT) { - netty_unix_socket_setOptionHandleError(env, errno); - // Something went wrong so close the fd and return here. setOption(...) itself throws the exception already. - close(fd); - return -1; + netty_unix_socket_setOptionHandleError(env, errno); + // Something went wrong so close the fd and return here. setOption(...) itself throws the exception already. + close(fd); + return -1; } // else we failed to enable dual stack mode. // It is assumed the socket is re‐stricted to sending and receiving IPv6 packets only.