Skip to content

Commit

Permalink
Fix error handling in k5_expand_path()
Browse files Browse the repository at this point in the history
In k5_expand_path_tokens_extra(), don't throw away non-zero return
statuses in the cleanup handler.  Reported by Will Fiveash.

(cherry picked from commit 55b4644)

ticket: 8455
version_fixed: 1.14.3
  • Loading branch information
greghudson authored and tlyu committed Jul 19, 2016
1 parent 30aa355 commit ffd4a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/krb5/os/expand_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,5 +537,5 @@ k5_expand_path_tokens_extra(krb5_context context, const char *path_in,
cleanup:
k5_buf_free(&buf);
free_extra_tokens(extra_tokens);
return 0;
return ret;
}

0 comments on commit ffd4a36

Please sign in to comment.