Correctly check for the `DISCONT` buffer flag to be set

12 jobs for !694 with 0.8-backports in 20 minutes and 26 seconds (queued for 3 seconds)
merge request