From 9ff8d5a0b6b05854d8a96270e2b02abd2a19bb03 Mon Sep 17 00:00:00 2001 From: Arne Goedeke <el@laramies.com> Date: Sun, 4 Nov 2012 18:59:31 +0100 Subject: [PATCH] hash_svalue: do not mix return value of __hash() --- src/svalue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/svalue.c b/src/svalue.c index d2a0f327c9..0cb0b68230 100644 --- a/src/svalue.c +++ b/src/svalue.c @@ -471,7 +471,9 @@ PMOD_EXPORT unsigned INT32 hash_svalue(const struct svalue *s) } pop_stack(); STACK_LEVEL_DONE(0); - break; + /* do not mix the return value of __hash, since this makes using + * hash_value pointless */ + return q; } } /* FALL THROUGH */ -- GitLab