9b50a3ce03
terminated properly. Fix is from the PR and works for the test cases I threw at it. Should be safe and desirable for back porting to 2.2 or earlier if there are people still comitting to -stable. Submitted by: Marc Slemko <marcs@znep.com> Closes PR: 1864