diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-10-10 14:27:47 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-10-10 14:27:47 +0000 |
commit | ac57c71b57ba78a26afd15d407ab6233489961f0 (patch) | |
tree | 8c0888bf6a4a61d75c350555f054573d7f1eb898 /usr.sbin/relayd/relay_http.c | |
parent | e372a16a5b3761f3876fe7d1cd7e67740f9856cf (diff) |
Fix the hash http filter action to initialize the hash key correctly after
the multiple relay tables commit.
Diffstat (limited to 'usr.sbin/relayd/relay_http.c')
-rw-r--r-- | usr.sbin/relayd/relay_http.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/relayd/relay_http.c b/usr.sbin/relayd/relay_http.c index f3ead69df45..4b67295f0fd 100644 --- a/usr.sbin/relayd/relay_http.c +++ b/usr.sbin/relayd/relay_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay_http.c,v 1.2 2012/10/04 20:53:30 reyk Exp $ */ +/* $OpenBSD: relay_http.c,v 1.3 2012/10/10 14:27:46 reyk Exp $ */ /* * Copyright (c) 2006 - 2012 Reyk Floeter <reyk@openbsd.org> @@ -1053,7 +1053,10 @@ relay_handle_http(struct ctl_relay_event *cre, struct protonode *proot, case NODE_ACTION_HASH: DPRINTF("%s: hash '%s: %s'", __func__, pn->key, pk->value); + if (!con->se_hashkeyset) + con->se_hashkey = HASHINIT; con->se_hashkey = hash32_str(pk->value, con->se_hashkey); + con->se_hashkeyset = 1; ret = PN_PASS; break; case NODE_ACTION_LOG: |