INN commit: trunk/innfeed (endpoint.c)
INN Commit
rra at isc.org
Sun Jun 14 10:08:22 UTC 2015
Date: Sunday, June 14, 2015 @ 03:08:21
Author: iulius
Revision: 9895
innfeed: avoid underrun of endpoint array
The underrun would happen when the last endpoint is deleted.
Thanks to Richard Kettlewell for the patch.
Modified:
trunk/innfeed/endpoint.c
------------+
endpoint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: endpoint.c
===================================================================
--- endpoint.c 2015-06-14 10:06:27 UTC (rev 9894)
+++ endpoint.c 2015-06-14 10:08:21 UTC (rev 9895)
@@ -321,7 +321,7 @@
/* Adjust the global arrays to account for deleted endpoint. */
endPoints [ep->myFd] = NULL ;
if (ep->myFd == highestFd)
- while (endPoints [highestFd] == NULL && highestFd >= 0)
+ while (highestFd >= 0 && endPoints [highestFd] == NULL)
highestFd-- ;
for (idx = 0 ; idx < priorityCount ; idx++)
More information about the inn-committers
mailing list