Factorize fetch error check by testing size after the fetch loop
Factorize fetch error check by testing size after the fetch loop

Suggested by:	jilles

khorben/pkg,khorben/pkg,en90/pkg,junovitch/pkg,skoef/pkg,skoef/pkg,junovitch/pkg,en90/pkg,Open343/pkg,khorben/pkg,Open343/pkg