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>.
/*
- * Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation
+ * Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
*
* Author: Nikos Mavroyanopoulos
*
{
gnutls_mac_algorithm_t ret = 0;
- GNUTLS_HASH_LOOP (if (strcmp (oid, p->oid) == 0)
+ GNUTLS_HASH_LOOP (if (p->oid && strcmp (oid, p->oid) == 0)
{
ret = p->id; break;}
);