fix bug #19565, which was caused by an incorrect segment link computation
3 files changed