Development discussion of WireGuard
 help / color / mirror / Atom feed
* [PATCH] ipc: fix code style
@ 2017-01-10  3:49 James Tucker
  0 siblings, 0 replies; only message in thread
From: James Tucker @ 2017-01-10  3:49 UTC (permalink / raw)
  To: wireguard

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-10  3:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-10  3:49 [PATCH] ipc: fix code style James Tucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).