split out the flushing of the buffers to separate functions and see if we can flush some data from the buffer if it is overflowing before growing the buffer
split out the flushing of the buffers to separate functions and see if we can flush some data from the buffer if it is overflowing before growing the buffer

git-svn-id: 42347dce00c86f9aec5f22b61aa49406f8a6f818@635 ef36b2f9-881f-0410-afb5-c4e39611909c

arthurdejong/nss-pam-ldapd,arthurdejong/nss-pam-ldapd,arthurdejong/nss-pam-ldapd