projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8209e26
)
For the moment, test for nullity of pointers returned by k5alloc
author
Greg Hudson
<ghudson@mit.edu>
Sat, 21 Nov 2009 23:08:03 +0000
(23:08 +0000)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/src/kdc/kdc_authdata.c
b/src/kdc/kdc_authdata.c
index 175fbec1c6b46c984962576e0b2164b00a95d342..03bfe29c4f420dee7e42fc264bb845224caedf17 100644
(file)
--- 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++) {