Browse Source

If crypt(3) is called with an unknown setting, return NULL instead

of some undefined value.
OK tedu@
OPENBSD_5_8
bluhm 9 years ago
parent
commit
4498258510
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/lib/libc/crypt/crypt.c

+ 3
- 1
src/lib/libc/crypt/crypt.c View File

@ -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 <pwd.h> #include <pwd.h>
@ -13,4 +13,6 @@ crypt(const char *key, const char *setting)
return (NULL); return (NULL);
} }
} }
return (NULL);
} }

Loading…
Cancel
Save