common: Check for an error before reading.
authorNeal H. Walfield <neal@g10code.com>
Tue, 23 Feb 2016 20:04:29 +0000 (21:04 +0100)
committerNeal H. Walfield <neal@g10code.com>
Tue, 23 Feb 2016 20:04:29 +0000 (21:04 +0100)
commit8066f8a3470f9d2f3682a28641a7b09eca29a105
treeee1c3f193773b34c67de994a6694ca5ed48c679d
parent903466e124841cb29f518afa6b7706d490737ac3
common: Check for an error before reading.

* common/iobuf.c (iobuf_copy): If DEST has a pending error, don't
start copying.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
common/iobuf.c