]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix unlikely pointer error in get_in_tkt.c
authorGreg Hudson <ghudson@mit.edu>
Mon, 9 May 2016 17:45:06 +0000 (13:45 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 6 Jul 2016 19:17:06 +0000 (15:17 -0400)
commit7c4a7adf7f224868c936cb56804ebd17d5d58756
tree135e6bf61dc196241da0241dc77c724814c9000e
parenteaebfbd3b6200b81c2550af1cb8f58a436b11e02
Fix unlikely pointer error in get_in_tkt.c

In add_padata(), reset the caller's pointer and ensure the list is
terminated as soon as realloc() succeeds; otherwise, the old pointer
could be left behind if a later allocation fails.

(cherry picked from commit 24452cd737951fa6e0f35e97c6a644a9db0aa82d)

ticket: 8413
version_fixed: 1.13.6
tags: -pullup
status: resolved
src/lib/krb5/krb/get_in_tkt.c