krb5 commit: Handle errors from curs_init in db2 back end
Tom Yu
tlyu at mit.edu
Tue Aug 16 21:46:18 EDT 2016
https://github.com/krb5/krb5/commit/da4447bd3a9e12485cf2e6cc925dcc386585a0c1
commit da4447bd3a9e12485cf2e6cc925dcc386585a0c1
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.
ticket: 8473 (new)
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
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 c29867a..d69643c 100644
--- a/src/plugins/kdb/db2/kdb_db2.c
+++ b/src/plugins/kdb/db2/kdb_db2.c
@@ -1095,6 +1095,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