Fix password validation failure for all crypt
and crypt_r based algorithms.

PR: 54603

Submitted by: Harvey Eneman <harvey.eneman oracle.com>

Backport of r1449308 from trunk.


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