From 51a769716de46377c58da180581232276f8cd15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 26 Apr 2004 21:17:19 +0000 Subject: [PATCH] (krb5_oid_to_enctype): make sure oid exists before we compare with it git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13815 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index 76986885e..249d4095b 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -3045,7 +3045,7 @@ krb5_oid_to_enctype(krb5_context context, { int i; for(i = 0; i < num_etypes; i++) { - if(heim_oid_cmp(etypes[i]->oid, oid) == 0) { + if(etypes[i]->oid && heim_oid_cmp(etypes[i]->oid, oid) == 0) { *etype = etypes[i]->type; return 0; }