[PATCH 6/6] server: Avoid writing out of bounds in get_selector_entry().