summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-01-13 23:10:52 +0000
committerTheodore Tso <tytso@mit.edu>1994-01-13 23:10:52 +0000
commit7360ea617de5b40240f7bc9528fdc63ee3e39e32 (patch)
treeee29a3f127f69fe984354350f6f949d1ecb72eb0 /src
parent0f9b5801c8e4d4abf025b12e6441c2c9b3e402f9 (diff)
downloadkrb5-7360ea617de5b40240f7bc9528fdc63ee3e39e32.tar.gz
krb5-7360ea617de5b40240f7bc9528fdc63ee3e39e32.tar.xz
krb5-7360ea617de5b40240f7bc9528fdc63ee3e39e32.zip
Make sure the routines return the correct error code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3319 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/ccache/stdio/scc_read.c2
-rw-r--r--src/lib/krb5/ccache/stdio/scc_sseq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/krb5/ccache/stdio/scc_read.c b/src/lib/krb5/ccache/stdio/scc_read.c
index 998115f0c..40ba12226 100644
--- a/src/lib/krb5/ccache/stdio/scc_read.c
+++ b/src/lib/krb5/ccache/stdio/scc_read.c
@@ -137,7 +137,7 @@ krb5_scc_read_principal(id, princ)
free(krb5_princ_component(tmpprinc, i)->data);
free((char *)tmpprinc->data);
free((char *)tmpprinc);
- return KRB5_CC_NOMEM;
+ return kret;
}
krb5_error_code
diff --git a/src/lib/krb5/ccache/stdio/scc_sseq.c b/src/lib/krb5/ccache/stdio/scc_sseq.c
index 3d576797c..80cb7e001 100644
--- a/src/lib/krb5/ccache/stdio/scc_sseq.c
+++ b/src/lib/krb5/ccache/stdio/scc_sseq.c
@@ -68,5 +68,5 @@ krb5_scc_start_seq_get(id, cursor)
*cursor = (krb5_cc_cursor) fcursor;
MAYBE_CLOSE (id, ret);
- return KRB5_OK;
+ return(ret);
}