krb5 commit [krb5-1.13]: Handle errors from curs_init in db2 back end
Tom Yu
tlyu at mit.edu
Fri Sep 9 14:48:17 EDT 2016
https://github.com/krb5/krb5/commit/977e59f5aeb3d9c1e0a110d628c5b14f7085858e
commit 977e59f5aeb3d9c1e0a110d628c5b14f7085858e
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.13.7
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 dd4a4f3..12d3230 100644
--- a/src/plugins/kdb/db2/kdb_db2.c
+++ b/src/plugins/kdb/db2/kdb_db2.c
@@ -1105,6 +1105,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