Merge remote-tracking branch 'tor-github/pr/988' into maint-0.4.0