From dd5fca3fee8557084fa4d579f5961c3047889663 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sat, 21 Nov 2009 23:08:03 +0000 Subject: [PATCH] For the moment, test for nullity of pointers returned by k5alloc instead of result codes, to make Coverity happy. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23298 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kdc_authdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kdc/kdc_authdata.c b/src/kdc/kdc_authdata.c index 175fbec1c..03bfe29c4 100644 --- a/src/kdc/kdc_authdata.c +++ b/src/kdc/kdc_authdata.c @@ -828,7 +828,7 @@ make_ad_signedpath_data(krb5_context context, if (i != 0) { sign_authdata = k5alloc((i + 1) * sizeof(krb5_authdata *), &code); - if (code != 0) + if (sign_authdata == NULL) return code; for (i = 0, j = 0; authdata[i] != NULL; i++) { -- 2.26.2