diff options
author | Tom Yu <tlyu@mit.edu> | 2016-08-11 16:27:33 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2016-09-02 14:49:38 -0400 |
commit | 2e64212867244b659c4a5054ec9a6d93eeddec3e (patch) | |
tree | ccf9f2f2066e8d10c615147c9632662ef67edcbc | |
parent | c6c6c2ab42e67d3447a9356274361748155a9bfb (diff) | |
download | krb5-2e64212867244b659c4a5054ec9a6d93eeddec3e.zip krb5-2e64212867244b659c4a5054ec9a6d93eeddec3e.tar.gz krb5-2e64212867244b659c4a5054ec9a6d93eeddec3e.tar.bz2 |
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
-rw-r--r-- | 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); |