(_gnutls_x509_oid2mac_algorithm): Don't crash trying to strcmp the
commitc55225b50f8aa4321e7f4a168875235070baa63f
authorSimon Josefsson <simon@josefsson.org>
Fri, 11 Aug 2006 22:47:06 +0000 (11 22:47 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 11 Aug 2006 22:47:06 +0000 (11 22:47 +0000)
tree8ac1236ace10c9a6df19204ec08bf22258b5cf2a
parent3b9e773e91432df9bc1ca3894f9b7386a7fedb58
(_gnutls_x509_oid2mac_algorithm): Don't crash trying to strcmp the
NULL OID value in the hash_algorithms array, which happens when the
input OID doesn't match our OIDs for SHA1, MD5, MD2 or RIPEMD160.
Reported by satyakumar <satyam_kkd@hyd.hellosoft.com>.
lib/gnutls_algorithms.c