summaryrefslogtreecommitdiff
path: root/src/misc/crypt_des.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/crypt_des.c')
-rw-r--r--src/misc/crypt_des.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/misc/crypt_des.c b/src/misc/crypt_des.c
index 4dc6b4b5..4454a130 100644
--- a/src/misc/crypt_des.c
+++ b/src/misc/crypt_des.c
@@ -1014,11 +1014,8 @@ char *__crypt_des(const char *key, const char *setting, char *output)
* likely that any alignment related issues would be detected.
*/
p = _crypt_extended_r_uut(test_key, test_setting, test_buf);
- if (p && !strcmp(p, test_hash))
+ if (p && !strcmp(p, test_hash) && retval)
return retval;
- /*
- * Should not happen.
- */
- return NULL;
+ return (setting[0]=='*') ? "x" : "*";
}