For the moment, test for nullity of pointers returned by k5alloc
authorGreg Hudson <ghudson@mit.edu>
Sat, 21 Nov 2009 23:08:03 +0000 (23:08 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sat, 21 Nov 2009 23:08:03 +0000 (23:08 +0000)
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

index 175fbec1c6b46c984962576e0b2164b00a95d342..03bfe29c4f420dee7e42fc264bb845224caedf17 100644 (file)
@@ -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++) {