[sr-dev] [kamailio] rtpengine: hash table to keep the selected nodes (#390)

Richard Fuchs notifications at github.com
Wed Nov 11 17:11:09 CET 2015


>  
>  	/* XXX Use quick-and-dirty hashing algo */
> -	for(sum = 0; callid.len > 0; callid.len--)
> -		sum += callid.s[callid.len - 1];
> +	for(i = 0; i < callid.len; i++)
> +		sum += callid.s[i];

"sum" is used uninitialized here

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/390/files#r44549819
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151111/03725592/attachment.html>


More information about the sr-dev mailing list