]> git.ipfire.org Git - thirdparty/krb5.git/commit
Improve negoex_parse_token() code hygiene 1082/head
authorRobbie Harwood <rharwood@redhat.com>
Tue, 9 Jun 2020 20:23:37 +0000 (16:23 -0400)
committerGreg Hudson <ghudson@mit.edu>
Sun, 14 Jun 2020 02:04:33 +0000 (22:04 -0400)
commit4f91b6f8fa6fe1de662b3fdac0d59b7758ec642a
tree2caef8004108cb1cdde4a9e32469b97e1eccac51
parent03f122bdb22cfa53c7d855ed929c9541e56365e0
Improve negoex_parse_token() code hygiene

If the while loop in negoex_parse_token() runs for zero iterations,
major will be used initialized.  Currently this cannot happen, but
only because both of the call sites check for zero-length tokens.
Initialize major for safety.

[ghudson@mit.edu: rewrote commit message]
src/lib/gssapi/spnego/negoex_util.c