From 7dd760dcac33ddd1bcdbf7f214f53631a944be46 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Sat, 4 Aug 2007 21:29:24 +0000 Subject: [PATCH] use goto instead break because of 2 loops --- src/objects.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/objects.c b/src/objects.c index 8f30751..d9ccad8 100644 --- a/src/objects.c +++ b/src/objects.c @@ -867,10 +867,11 @@ void accept_cancel_request(PgSocket *req) client = container_of(citem, PgSocket, head); if (memcmp(client->cancel_key, req->cancel_key, 8) == 0) { main_client = client; - break; + goto found; } } } +found: /* wrong key */ if (!main_client) { -- 2.40.0