From: Greg Hudson Date: Fri, 15 Jul 2016 22:51:31 +0000 (-0400) Subject: Fix error handling in k5_expand_path() X-Git-Tag: krb5-1.15-beta1~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F484%2Fhead;p=thirdparty%2Fkrb5.git Fix error handling in k5_expand_path() In k5_expand_path_tokens_extra(), don't throw away non-zero return statuses in the cleanup handler. Reported by Will Fiveash. ticket: 8455 target_version: 1.14-next target_version: 1.13-next tags: pullup --- diff --git a/src/lib/krb5/os/expand_path.c b/src/lib/krb5/os/expand_path.c index 6142b3bbd5..a8a14f4bb2 100644 --- a/src/lib/krb5/os/expand_path.c +++ b/src/lib/krb5/os/expand_path.c @@ -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; }