]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Hash needs to return a positive integer
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 2 Oct 2009 16:53:52 +0000 (16:53 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 2 Oct 2009 16:53:52 +0000 (16:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@221969 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_lock.c

index 5d116e82c8460331a978299bef9d6945bc040978..432292b39405cabee560a82b55eca203d90723f1 100644 (file)
@@ -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)