From: Tilghman Lesher Date: Fri, 2 Oct 2009 16:53:52 +0000 (+0000) Subject: Hash needs to return a positive integer X-Git-Tag: 1.6.1.7-rc2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47accdc3453a6f1fafb21f8a1e67f952e19f584a;p=thirdparty%2Fasterisk.git 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 --- 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)