projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f1d457
)
use goto instead break because of 2 loops
author
Marko Kreen
<markokr@gmail.com>
Sat, 4 Aug 2007 21:29:24 +0000
(21:29 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Sat, 4 Aug 2007 21:29:24 +0000
(21:29 +0000)
src/objects.c
patch
|
blob
|
blame
|
history
diff --git
a/src/objects.c
b/src/objects.c
index 8f307510c940f17e1ff61d8808dbbd0624097eb6..d9ccad8dcfe300283e86dbf0f500d670c905e592 100644
(file)
--- 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) {