krb5-gssapi: Removed a memory leak in krb5_auth.
authorJulien Chaffraix <julien.chaffraix@gmail.com>
Sat, 2 Oct 2010 07:54:34 +0000 (00:54 -0700)
committerJulien Chaffraix <julien.chaffraix@gmail.com>
Sat, 2 Oct 2010 17:00:42 +0000 (10:00 -0700)
commitfc137ee27221f151f44a2ec2022065e06d6c62a9
tree6e29dc0da486fe7cf1dd08708cfadf762c9043b0
parent79cd7ef9ab52de98bffcbd1c8db6103ff985a263
krb5-gssapi: Removed a memory leak in krb5_auth.

We forgot to release the buffer passed to gss_init_sec_context.

The previous logic was difficult to read as we were reusing the same
variable (gssbuf) for both input buffer and output buffer. Splitted the
logic in 2 variables to better underline who needs to be released.
Also made the code break at 80 lines.
lib/krb5.c