25360088 Samba 4.4.5 in maintenance and smbd core dumps when kerberos method option used s11u3-sru
authorJiri Sasek <Jiri.Sasek@Oracle.COM>
Thu, 16 Feb 2017 06:37:04 -0800
branchs11u3-sru
changeset 7690 cca822116da5
parent 7684 df734e7c2a96
child 7693 789db572fc03
25360088 Samba 4.4.5 in maintenance and smbd core dumps when kerberos method option used
components/samba/patches/no-keytab-core.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/samba/patches/no-keytab-core.patch	Thu Feb 16 06:37:04 2017 -0800
@@ -0,0 +1,18 @@
+Problem description:
+smbd dump core in libkrb5-samba4.so.26.0.0:krb5_storage_free if arg. sp is NULL
+
+Issue hits Samba using  Heimdal krb5 code only.
+
+Promoted into upstream as Samba bug:
+https://bugzilla.samba.org/show_bug.cgi?id=12505
+
+--- a/source4/heimdal/lib/krb5/store.c	2017-01-09 16:03:14.204115997 -0800
++++ b/source4/heimdal/lib/krb5/store.c	2017-01-09 16:06:04.835337808 -0800
+@@ -270,6 +270,7 @@
+ KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
+ krb5_storage_free(krb5_storage *sp)
+ {
++    if(sp == NULL) return -1;
+     if(sp->free)
+ 	(*sp->free)(sp);
+     free(sp->data);