krb5 commit [krb5-1.14]: Handle errors from curs_init in db2 back end
Tom Yu
tlyu at mit.edu
Fri Sep 2 17:04:32 EDT 2016
https://github.com/krb5/krb5/commit/2e64212867244b659c4a5054ec9a6d93eeddec3e
commit 2e64212867244b659c4a5054ec9a6d93eeddec3e
Author: Tom Yu <tlyu at mit.edu>
Date: Thu Aug 11 16:27:33 2016 -0400
Handle errors from curs_init in db2 back end
ctx_iterate could ignore errors from curs_init. Actually pass them up
to the caller.
(cherry picked from commit da4447bd3a9e12485cf2e6cc925dcc386585a0c1)
ticket: 8473
version_fixed: 1.14.4
src/plugins/kdb/db2/kdb_db2.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/plugins/kdb/db2/kdb_db2.c b/src/plugins/kdb/db2/kdb_db2.c
index 625a9d7..e97b841 100644
--- a/src/plugins/kdb/db2/kdb_db2.c
+++ b/src/plugins/kdb/db2/kdb_db2.c
@@ -1102,6 +1102,8 @@ ctx_iterate(krb5_context context, krb5_db2_context *dbc,
iter_curs curs;
retval = curs_init(&curs, context, dbc, iterflags);
+ if (retval)
+ return retval;
dbret = curs_start(&curs);
while (dbret == 0) {
retval = curs_run_cb(&curs, func, func_arg);
More information about the cvs-krb5
mailing list