s3-librpc-crypto: avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute()
authorAlexander Bokovoy <ab@samba.org>
Thu, 7 Jun 2012 15:24:38 +0000 (18:24 +0300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jun 2012 17:44:34 +0000 (19:44 +0200)
commit185c2054fd22de0ab07a762a279a7ef0db5d802c
treeabeddfc36aa9a27cd93792d40d394bd305dcabd5
parent8b3b1aa4ff76d7f03285e3fa87f30f3068a7ea5d
s3-librpc-crypto: avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute()

gss_get_name_attribute() can return unintialized pac_display_buffer
and later gss_release_buffer() will crash on attempting to release it.

The fix on MIT krb5 side is in 1.10.1, reported in both Debian and MIT upstream:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658514
http://krbdev.mit.edu/rt/Ticket/Display.html?user=guest&pass=guest&id=7087

We need to initialize variables before using gss_get_name_attribute()

Fix bug #8988 (avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute()).
source3/librpc/crypto/gse.c