commit | d25e62e772365a78300797a86a61ce49cdf6b87e | [log] [tgz] |
---|---|---|
author | Daniel Hirche <daniel@xcx.cc> | Sat Feb 10 19:53:02 2018 +0100 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Sat Feb 10 23:10:54 2018 +0000 |
tree | d89ba61c4d4b61597f375ec628e04d2b8352a2c6 | |
parent | 38c20fe8d514a5328f5db404e116af8e9136c7f8 [diff] |
Return NULL instead of zero in |bn_resized_from_ctx|. Change-Id: I5fc029ceddfa60b2ccc97c138b94c1826f6d75fa Reviewed-on: https://boringssl-review.googlesource.com/25844 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/crypto/fipsmodule/bn/div.c b/crypto/fipsmodule/bn/div.c index 42c124c..6f850d9 100644 --- a/crypto/fipsmodule/bn/div.c +++ b/crypto/fipsmodule/bn/div.c
@@ -481,7 +481,7 @@ if (ret == NULL || !BN_copy(ret, bn) || !bn_resize_words(ret, width)) { - return 0; + return NULL; } return ret; }