summaryrefslogtreecommitdiff
path: root/libcrypt
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-30 16:53:44 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-30 16:53:44 +0000
commit6543304876c53bcc077ca236f5f45be33cb2df3d (patch)
treebb4c2cfa36ff0d7180b5ac1c0d444a0da2587a93 /libcrypt
parent1f93766a7d9b438c42faa40db419e7278a1d5ce8 (diff)
patch #3: make resolv.c use __uc_malloc
Diffstat (limited to 'libcrypt')
-rw-r--r--libcrypt/des.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrypt/des.c b/libcrypt/des.c
index 8efd05e68..be2622ecf 100644
--- a/libcrypt/des.c
+++ b/libcrypt/des.c
@@ -697,6 +697,7 @@ char *__des_crypt(const unsigned char *key, const unsigned char *setting)
#define output __des_crypt_out
if (!__uc_des_data) {
+ /* If malloc returns NULL, we just segfault. Other ideas? */
__uc_des_data = memset(__uc_malloc(sizeof(D)), 0, sizeof(D));
}