]> git.ipfire.org Git - thirdparty/krb5.git/commit
Avoid malloc(0) in SPNEGO get_input_token
authorGreg Hudson <ghudson@mit.edu>
Fri, 6 Dec 2013 23:56:56 +0000 (18:56 -0500)
committerTom Yu <tlyu@mit.edu>
Thu, 23 Jan 2014 03:20:56 +0000 (22:20 -0500)
commitc9eaac15a27a61df98b063d0a8432422a9b96f24
treed75d0c9123a9571cbfeb71deb0ea1499248d2878
parentcc7dc531f9e47c9c1eb32e716f6e5ed9cd1e5186
Avoid malloc(0) in SPNEGO get_input_token

If we read a zero-length token in spnego_mech.c's get_input_token(),
set the value pointer to NULL instead of calling malloc(0).

(cherry picked from commit 13fd26e1863c79f616653f6a10a58c01f65fceff)

ticket: 7841 (new)
version_fixed: 1.10.8
status: resolved
src/lib/gssapi/spnego/spnego_mech.c