diff options
author | Paul Wise <pabs3@bonedaddy.net> | 2016-02-29 11:58:45 -0600 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-02-16 16:20:18 +0000 |
commit | 780fbc3004126175c66ec906910453aed866b163 (patch) | |
tree | ed433b762d3c7e31a15763f216f2f377363e55c7 /source4 | |
parent | cf9066b21534de4d0a05a696ba2c28ae2813192d (diff) | |
download | samba-780fbc3004126175c66ec906910453aed866b163.tar.gz |
HEIMDAL: krb5_storage_free(NULL) should work
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12505
Signed-off-by: Paul Wise <pabs3@bonedaddy.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Original-author: Nicolas Williams <nico@twosigma.com>
(cherry-picked from heimdal commit b3db07d5f0e03f6a1a0a392e70f9675e19a6d6af)
(cherry picked from commit f9ed4f7028a5ed29026ac8ef1b47b63755ba98f8)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/heimdal/lib/krb5/store.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/heimdal/lib/krb5/store.c b/source4/heimdal/lib/krb5/store.c index 17de78e9e74..31afb23c983 100644 --- a/source4/heimdal/lib/krb5/store.c +++ b/source4/heimdal/lib/krb5/store.c @@ -270,6 +270,8 @@ krb5_storage_get_eof_code(krb5_storage *sp) KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_storage_free(krb5_storage *sp) { + if (sp == NULL) + return 0; if(sp->free) (*sp->free)(sp); free(sp->data); |