From 7360ea617de5b40240f7bc9528fdc63ee3e39e32 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 13 Jan 1994 23:10:52 +0000 Subject: [PATCH] Make sure the routines return the correct error code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3319 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/stdio/scc_read.c | 2 +- src/lib/krb5/ccache/stdio/scc_sseq.c | 2 +- 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); } -- 2.26.2