struct fr_connection 'number' label

Aaron Hurt ahurt at ena.com
Wed Jun 26 17:12:53 CEST 2013


Looking through the code here:

https://github.com/FreeRADIUS/freeradius-server/blob/master/src/main/connection.c

Should fr_connection->number match fr_connection_pool_t->count  … it seems as though number is being assigned the incremented value of count and number is a signed int whereas count is an unsigned int?  What happens if count grows larger than the max signed int?  Should both of these be changed to a long or unsigned long to reduce the chance of overflow to a near impossibility?

-- Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20130626/3f662331/attachment.html>


More information about the Freeradius-Devel mailing list