dotnet / Kerberos.NET

A Kerberos implementation built entirely in managed code.
MIT License
520 stars 91 forks source link

Handle zero length krb5cc headers #341

Closed SteveSyfuhs closed 1 year ago

SteveSyfuhs commented 1 year ago

What's the problem?

Krb5cc headers can be empty and we fail to parse that because we assume there's always a value.

What's the solution?

Rework the do/while into a regular while loop so that it immediately exits on a zero length.

What issue is this related to, if any?

N/A Internally reported.