Files
heimdal/lib
Jeffrey Altman 31d5c38976 lib/hcrypto: mpz2BN return NULL if mp_ubin_size(s) returns zero
If mp_ubin_size(s) returns zero then mp_to_ubin() will fail and
not return MP_OKAY.  If MP_OKAY is not returned, NULL is returned
to the caller of mpz2BN().

This change avoids the unnecessary memory allocation and function
calls.  It also removes a dereference after null warning from
coverity.

Change-Id: I52ff2c166964e41cb4eef1dac637904bf2bf13bf
2022-01-24 10:14:17 -05:00
..
2022-01-21 10:09:44 +11:00
2022-01-19 23:37:01 -06:00
2017-03-10 15:47:43 -05:00
2022-01-21 23:01:44 -06:00
2016-12-15 12:15:56 -06:00