[asterisk-commits] russell: branch russell/dtls r208663 - /team/russell/dtls/main/dtls.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 24 14:41:33 CDT 2009
Author: russell
Date: Fri Jul 24 14:41:27 2009
New Revision: 208663
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=208663
Log:
Ensure hash value is non-negative.
Modified:
team/russell/dtls/main/dtls.c
Modified: team/russell/dtls/main/dtls.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/russell/dtls/main/dtls.c?view=diff&rev=208663&r1=208662&r2=208663
==============================================================================
--- team/russell/dtls/main/dtls.c (original)
+++ team/russell/dtls/main/dtls.c Fri Jul 24 14:41:27 2009
@@ -266,7 +266,7 @@
{
const struct dtls_connection *conn = obj;
- return conn->sin_remote.sin_addr.s_addr ^ conn->sin_remote.sin_port;
+ return abs((int) (conn->sin_remote.sin_addr.s_addr ^ conn->sin_remote.sin_port));
}
/*!
More information about the asterisk-commits
mailing list