There is a disputed border, and if India had every piece of land claimed, it would border Afghanistan and Pakistan would not border China. However, there is no basis for the full claim, and control of the area in question means China and Pakistan border each other but India and Afghanistan do not. See https://www.youtube.com/watch?v=3ZdkqqjosCM for a discussion of this.