]> git.99rst.org Git - git.git/commit
git-cvsserver: protect against NULL in crypt(3)
authorCarlo Marcelo Arenas Belón <redacted>
Wed, 15 Sep 2021 08:09:47 +0000 (01:09 -0700)
committerJunio C Hamano <redacted>
Fri, 17 Sep 2021 03:47:23 +0000 (20:47 -0700)
commitbffcb4d9d6394a68a7f6c03598087705c6d34510
treeb0f7c93d815ea351888dc6bf7c19a1cb2721ae28
parenta7775c7eb8074fcf37f22bdcdc0971448c1aa4d1
git-cvsserver: protect against NULL in crypt(3)

Some versions of crypt(3) will return NULL when passed an unsupported
hash type (ex: OpenBSD with DES), so check for undef instead of using
it directly.

Also use this to probe the system and select a better hash function in
the tests, so it can pass successfully.

Signed-off-by: Carlo Marcelo Arenas Belón <redacted>
[jc: <redacted>]
Signed-off-by: Junio C Hamano <redacted>
git-cvsserver.perl
t/t9400-git-cvsserver-server.sh
git clone https://git.99rst.org/PROJECT