Skip to content
Commit 76e5b1af authored by Vincent Petry's avatar Vincent Petry Committed by backportbot[bot]
Browse files

Check resource before closing in encryption wrapper



In case of error there is no guarantee that $source or $target is set or
is a resource when handling an error.

Without this fix, there's a risk that fclose will fail and the actual
exception will not be thrown, making it impossible to find out about the
root cause.

Signed-off-by: default avatarVincent Petry <vincent@nextcloud.com>
parent 0774a940
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment