diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-02-06 18:40:04 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-02-06 18:40:04 +0000 |
commit | 59f4572e458f114f5f9e8da78ff3f79d117197d1 (patch) | |
tree | 541782463cdf349673c6fad847350d9cbfa31c9d /src | |
parent | 216c2ffb30db4b9f8f7899666752226f405ce336 (diff) | |
download | krb5-59f4572e458f114f5f9e8da78ff3f79d117197d1.tar.gz krb5-59f4572e458f114f5f9e8da78ff3f79d117197d1.tar.xz krb5-59f4572e458f114f5f9e8da78ff3f79d117197d1.zip |
Fix error handling in krb5_walk_realm_tree
rtree_hier_realms was forgetting to assign the return value of
krb5int_copy_data_contents to retval, which would cause a failure to
notice out-of-memory conditions.
ticket: 6375
tags: pullup
target_version: 1.7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21909 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/krb5/krb/walk_rtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/walk_rtree.c b/src/lib/krb5/krb/walk_rtree.c index 4cebce5267..ba15489d60 100644 --- a/src/lib/krb5/krb/walk_rtree.c +++ b/src/lib/krb5/krb/walk_rtree.c @@ -389,7 +389,7 @@ rtree_hier_realms( } /* Copy server realm "tweens" backward. */ for (twp = &stweens[nstween]; twp-- > stweens;) { - krb5int_copy_data_contents(context, twp, rp++); + retval = krb5int_copy_data_contents(context, twp, rp++); if (retval) goto error; } error: |