From 4498258510e6f118b632ba2f897e50f5172f737b Mon Sep 17 00:00:00 2001 From: bluhm <> Date: Wed, 13 May 2015 21:01:54 +0000 Subject: [PATCH] If crypt(3) is called with an unknown setting, return NULL instead of some undefined value. OK tedu@ --- src/lib/libc/crypt/crypt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/libc/crypt/crypt.c b/src/lib/libc/crypt/crypt.c index c61f360a..76e02c23 100644 --- a/src/lib/libc/crypt/crypt.c +++ b/src/lib/libc/crypt/crypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypt.c,v 1.27 2015/04/06 20:49:41 tedu Exp $ */ +/* $OpenBSD: crypt.c,v 1.28 2015/05/13 21:01:54 bluhm Exp $ */ #include @@ -13,4 +13,6 @@ crypt(const char *key, const char *setting) return (NULL); } } + + return (NULL); }