Legal all around. Can't be a travel without player control, and in the play described the ball was never secured and brought back to the floor.Player jumps to tip in a missed shot, misses everything and outjumps opponents to retip his own miss. Nothing illegal about the play (except for the fact that he/she missed everything

).