The flight instructor of the tailwheel equipped airplane reported that, with the student pilot on controls, during the landing roll, the student's right foot slipped off the right pedal and got stuck between the right pedal and fuselage frame. The airplane veered right, the flight instructor corrected with left pedal, but the airplane continued right, exited the runway to the right, struck a ditch and impacted terrain.
The airplane sustained substantial damage to the fuselage.
The student pilot reported that there were no preaccident mechanical failures or malfunctions with the airplane that would have precluded normal operation.