fix: null check

This commit is contained in:
iceman1001 2019-03-16 07:31:13 +01:00
parent c83b2e7fff
commit 1fcd0f66c5

View file

@ -988,7 +988,10 @@ pcrc(const poly_t message, const poly_t divisor, const poly_t init, const poly_t
/* 0 <= ofs <= BMP_BIT, location of the first bit of the result */
pshift(&result, result, 0UL, ofs, (init.length > max + divisor.length ? init.length - max - divisor.length : 0UL) + divisor.length + ofs, 0UL);
}
psum(&result, xorout, 0UL);
if ( result.bitmap != NULL )
psum(&result, xorout, 0UL);
return (result);
}