equal
deleted
inserted
replaced
|
1 Problem description: |
|
2 smbd dump core in libkrb5-samba4.so.26.0.0:krb5_storage_free if arg. sp is NULL |
|
3 |
|
4 Issue hits Samba using Heimdal krb5 code only. |
|
5 |
|
6 Promoted into upstream as Samba bug: |
|
7 https://bugzilla.samba.org/show_bug.cgi?id=12505 |
|
8 |
|
9 --- a/source4/heimdal/lib/krb5/store.c 2017-01-09 16:03:14.204115997 -0800 |
|
10 +++ b/source4/heimdal/lib/krb5/store.c 2017-01-09 16:06:04.835337808 -0800 |
|
11 @@ -270,6 +270,7 @@ |
|
12 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL |
|
13 krb5_storage_free(krb5_storage *sp) |
|
14 { |
|
15 + if(sp == NULL) return -1; |
|
16 if(sp->free) |
|
17 (*sp->free)(sp); |
|
18 free(sp->data); |