After malloc/realloc/calloc failures, return ENOMEM explicitly instead
authorKen Raeburn <raeburn@mit.edu>
Wed, 30 Apr 2008 23:18:21 +0000 (23:18 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 30 Apr 2008 23:18:21 +0000 (23:18 +0000)
commitec5b9670de4c7af9ebaecfbd305857ee030460c0
treef6bf89e559978a8cea0ee428421ab75dba969381
parent4fe69e66b424f10e6a44f8bd488e3fa56682edbf
After malloc/realloc/calloc failures, return ENOMEM explicitly instead
of reading it from errno.  This may make static analysis tools less
confused about when we return zero vs nonzero values.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20312 dc483132-0cff-0310-8789-dd5450dbe970
21 files changed:
src/appl/bsd/compat_recv.c
src/clients/ksu/ccache.c
src/clients/ksu/heuristic.c
src/clients/ksu/main.c
src/lib/crypto/des/string2key.c
src/lib/crypto/dk/dk_encrypt.c
src/lib/crypto/pbkdf2.c
src/lib/kadm5/alt_prof.c
src/lib/kadm5/srv/server_dict.c
src/lib/krb5/ccache/cc_memory.c
src/lib/krb5/os/hostaddr.c
src/lib/krb5/os/init_os_ctx.c
src/lib/krb5/os/localaddr.c
src/lib/krb5/os/locate_kdc.c
src/util/et/error_message.c
src/util/et/init_et.c
src/util/profile/prof_file.c
src/util/profile/prof_init.c
src/util/profile/profile.swg
src/util/profile/profile_tcl.c
src/util/support/threads.c