Skip to content

Commit

Permalink
Handle errors from curs_init in db2 back end
Browse files Browse the repository at this point in the history
ctx_iterate could ignore errors from curs_init.  Actually pass them up
to the caller.

(cherry picked from commit da4447b)

ticket: 8473
version_fixed: 1.13.7
  • Loading branch information
tlyu committed Sep 2, 2016
1 parent 6b00859 commit 977e59f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/kdb/db2/kdb_db2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 977e59f

Please sign in to comment.