Merge r1402870 from trunk:

Remove duplicated logic in apr_brigade_puts().

PR: 53740
Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr>

Reviewed by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.3.x@1403239 13f79535-47bb-0310-9956-ffa450edef68
Merge r1402897 from trunk:

Fix potential data corruption in apr_brigade_write() and friends if
the last bucket of the brigade is a heap bucket that has been split,
and there are still references to the next part of the original bucket
in use.

Submitted by: sf
Reviewed by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.3.x@1403250 13f79535-47bb-0310-9956-ffa450edef68