]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix krb5_copy_context
authorGreg Hudson <ghudson@mit.edu>
Wed, 18 Dec 2013 20:03:03 +0000 (15:03 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 18 Dec 2013 21:56:52 +0000 (16:56 -0500)
commitc452644d91d57d8b05ef396a029e34d0c7a48920
treedeca0362af71d12ea8d62529fce0f08975d2f7df
parent4faca53e3a8ee213d43da8998f6889e7bfd36248
Fix krb5_copy_context

krb5_copy_context has been broken since 1.8 (it broke in r22456)
because k5_copy_etypes crashes on null enctype lists.  Subsequent
additions to the context structure were not reflected in
krb5_copy_context, creating double-free bugs.  Make k5_copy_etypes
handle null input and account for all new fields in krb5_copy_context.
Reported by Arran Cudbard-Bell.

ticket: 7807 (new)
target_version: 1.12.1
tags: pullup
src/lib/krb5/krb/copy_ctx.c
src/lib/krb5/krb/etype_list.c