From 47accdc3453a6f1fafb21f8a1e67f952e19f584a Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Fri, 2 Oct 2009 16:53:52 +0000 Subject: [PATCH] Hash needs to return a positive integer git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@221969 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/func_lock.c b/funcs/func_lock.c index 5d116e82c8..432292b394 100644 --- a/funcs/func_lock.c +++ b/funcs/func_lock.c @@ -153,7 +153,7 @@ static void *lock_broker(void *unused) static int null_hash_cb(const void *obj, const int flags) { - return (int)(long) obj; + return abs((int)(long) obj); } static int null_cmp_cb(void *obj, void *arg, int flags)