check_sha1_signature: check return value from read_istream
commitf54fac53786808130c82936e59be16000deba04a
authorJeff King <peff@peff.net>
Mon, 25 Mar 2013 20:17:17 +0000 (25 16:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Mar 2013 20:46:55 +0000 (27 13:46 -0700)
tree6c6d2b4f63c493bc903831ade124d1b5dc2038e1
parent45d4bdae5906cfe6b7cb1ba1cec82fd80381e07e
check_sha1_signature: check return value from read_istream

It's possible for read_istream to return an error, in which
case we just end up in an infinite loop (aside from EOF, we
do not even look at the result, but just feed it straight
into our running hash).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c