Initialize SHA buffer size var in passwd_abort
authorMartin Etnestad <martin.etnestad@appeartv.com>
Fri, 12 Jan 2018 08:04:38 +0000 (09:04 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 14:36:28 +0000 (09:36 -0500)
commit2d06fd839d2d0846cf6e47ecebbf646b486e5570
treee9dbb709c943119ea575d3cb6627dbe32b3d2e1a
parent5b893baf0835d0a741023b74ef1ec8d9c8873965
Initialize SHA buffer size var in passwd_abort

The call to hash_block in passwd_abort fails with error ENOSPC on some
systems. The reason is that the variable which specifies the size of the
buffer to contain the computed hash does not get initialized.

This patch initializes the variable with the size of the buffer.

Signed-off-by: Martin Etnestad <martin.etnestad@appeartv.com>
common/autoboot.c