summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNickolai Zeldovich <nickolai@csail.mit.edu>2013-01-07 01:37:19 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-07 01:37:19 -0500
commita9ee4a040eeacab1d410ff9e4c862484b531c401 (patch)
tree4246b297fa2a743c00c8852ffcc3623e3742632a /src/lib
parent5e3bf4ac6cb02601c5f10c5b2804fd5028c80119 (diff)
downloadkrb5-a9ee4a040eeacab1d410ff9e4c862484b531c401.tar.gz
krb5-a9ee4a040eeacab1d410ff9e4c862484b531c401.tar.xz
krb5-a9ee4a040eeacab1d410ff9e4c862484b531c401.zip
Fix various result checks
Correct three cases where the wrong expression was checked to see if an allocation function returned null. [ghudson@mit.edu: commit message, patch splitting] ticket: 7534 target_version: 1.11.1 tags: pullup
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/kadm5/srv/svr_principal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kadm5/srv/svr_principal.c b/src/lib/kadm5/srv/svr_principal.c
index 5d858279d3..ae36841a78 100644
--- a/src/lib/kadm5/srv/svr_principal.c
+++ b/src/lib/kadm5/srv/svr_principal.c
@@ -1991,7 +1991,7 @@ make_ks_from_keys(krb5_context context, int n_keys, krb5_keyblock *keyblocks,
int i;
*ks_tuple = calloc(n_keys, sizeof(**ks_tuple));
- if (ks_tuple == NULL)
+ if (*ks_tuple == NULL)
return ENOMEM;
for (i = 0; i < n_keys; i++) {