artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a3f76
)
If crypt(3) is called with an unknown setting, return NULL instead
author
bluhm
<bluhm@openbsd.org>
Wed, 13 May 2015 21:01:54 +0000
(21:01 +0000)
committer
bluhm
<bluhm@openbsd.org>
Wed, 13 May 2015 21:01:54 +0000
(21:01 +0000)
of some undefined value.
OK tedu@
lib/libc/crypt/crypt.c
patch
|
blob
|
history
diff --git
a/lib/libc/crypt/crypt.c
b/lib/libc/crypt/crypt.c
index
c61f360
..
76e02c2
100644
(file)
--- a/
lib/libc/crypt/crypt.c
+++ b/
lib/libc/crypt/crypt.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: crypt.c,v 1.2
7 2015/04/06 20:49:41 tedu Exp $
*/
+/* $OpenBSD: crypt.c,v 1.2
8 2015/05/13 21:01:54 bluhm Exp $
*/
#include <pwd.h>
@@
-13,4
+13,6
@@
crypt(const char *key, const char *setting)
return (NULL);
}
}
+
+ return (NULL);
}