bundle.c: set size return parameter earlier in check_bundle()
bundle.c: set size return parameter earlier in check_bundle()

If an error occured in check_bundle() the 'size' return parameter was
not yet set to an appropriate value, even when this was already
available. This leads to incorrect outputs of the squashfs size.

Assigning the value as soon as it is available will allow showing
correct results in case of other failures.

Signed-off-by: Enrico Jorns <a2e5f936c390f36494e46e71bcfbe365bb1e8c49@pengutronix.de>

rauc/rauc,jluebbe/rauc,ejoerns/rauc,rauc/rauc,ejoerns/rauc,ejoerns/rauc,jluebbe/rauc,jluebbe/rauc,rauc/rauc