projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efcaa57
)
kick client if startup pkt contains unknown params
author
Marko Kreen
<markokr@gmail.com>
Sat, 4 Aug 2007 19:53:43 +0000
(19:53 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Sat, 4 Aug 2007 19:53:43 +0000
(19:53 +0000)
src/client.c
patch
|
blob
|
blame
|
history
diff --git
a/src/client.c
b/src/client.c
index 6af2544fe6bb02b42537371cf11846c4c8749e3c..05389809cb0103c803025e9652922d105841860a 100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-111,10
+111,11
@@
static bool decide_startup_pool(PgSocket *client, MBuf *pkt)
dbname = val;
else if (strcmp(key, "user") == 0)
username = val;
+ else if (varcache_set(&client->vars, key, val, true))
+ slog_debug(client, "got var: %s=%s", key, val);
else {
- /* remember requested parameters */
- if (varcache_set(&client->vars, key, val, true))
- slog_debug(client, "got var: %s=%s", key, val);
+ disconnect_client(client, true, "Unknown startup parameter");
+ return false;
}
}
if (!username) {