1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/librpc/crypto
Andrew Bartlett 82c0ecbb2c gse_krb5: Avoid a segfault when we can not read the dedicated keytab file
This improved code simply cleans up the memory as soon as possible,
rather than using memcmp().  Otherwise, we segfault if
krb5_kt_start_seq_get fails, as it can set the fd element in the
handle to -1.

Change-Id: Ib4821ef944a7e12cd8a891ae07dbfc0567c65495
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Nov 27 07:38:02 CET 2014 on sn-devel-104
2014-11-27 07:38:02 +01:00
..
gse_krb5.c gse_krb5: Avoid a segfault when we can not read the dedicated keytab file 2014-11-27 07:38:02 +01:00
gse_krb5.h s3-dcerpc: move crypto stuff in /librpc/crypto 2010-09-23 10:36:54 -07:00
gse.c auth/gensec: introduce gensec_internal.h 2013-08-10 09:19:02 +02:00
gse.h s3-gse Move GSS_C_DCE_STYLE backup definition to gse.c 2012-01-18 16:23:23 +01:00