summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_lib.c
diff options
context:
space:
mode:
authorjsing <>2015-02-09 15:49:22 +0000
committerjsing <>2015-02-09 15:49:22 +0000
commit15dc63f9715f4f10924a705d6a4cc564afe2129e (patch)
treed924c624d5eb949a9e7e395dc99d92616e911ce9 /src/lib/libcrypto/ui/ui_lib.c
parent714f82ff1b6302b27dcbcff8136087833e23251d (diff)
downloadopenbsd-15dc63f9715f4f10924a705d6a4cc564afe2129e.tar.gz
openbsd-15dc63f9715f4f10924a705d6a4cc564afe2129e.tar.bz2
openbsd-15dc63f9715f4f10924a705d6a4cc564afe2129e.zip
BN_CTX_get() can fail - consistently check its return value.
There are currently cases where the return from each call is checked, the return from only the last call is checked and cases where it is not checked at all (including code in bn, ec and engine). Checking the last return value is valid as once the function fails it will continue to return NULL. However, in order to be consistent check each call with the same idiom. This makes it easy to verify. Note there are still a handful of cases that do not follow the idiom - these will be handled separately. ok beck@ doug@
Diffstat (limited to 'src/lib/libcrypto/ui/ui_lib.c')
0 files changed, 0 insertions, 0 deletions