[PATCH] ipc: fix code style

James Tucker jftucker at gmail.com
Tue Jan 10 04:49:34 CET 2017


best we don't goto fail by accident.
---
 src/tools/ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tools/ipc.c b/src/tools/ipc.c
index 6237961..0e90b3c 100644
--- a/src/tools/ipc.c
+++ b/src/tools/ipc.c
@@ -240,7 +240,7 @@ static int userspace_get_device(struct wgdevice **dev, const char *interface)
 		if ((uint8_t *)peer + sizeof(struct wgpeer) > (uint8_t *)*dev + len)
 			goto out;
 		if ((uint8_t *)peer + sizeof(struct wgpeer) + sizeof(struct wgipmask) * peer->num_ipmasks > (uint8_t *)*dev + len)
-		goto out;
+			goto out;
 	}
 	ret = 0;
 out:
-- 
2.11.0



More information about the WireGuard mailing list