diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-20 13:46:05 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-21 08:43:01 +0200 |
commit | 07f67d8612ca547975a153b8291b077e68058a8a (patch) | |
tree | 015a44b5213e31727b1b5fee93ac19f0585927df /source3/libsmb | |
parent | 12e257999b71e24fdc991adf80753421280cec79 (diff) | |
download | samba-07f67d8612ca547975a153b8291b077e68058a8a.tar.gz samba-07f67d8612ca547975a153b8291b077e68058a8a.tar.bz2 samba-07f67d8612ca547975a153b8291b077e68058a8a.zip |
s3:libsmb/smb_seal: always use SAFE_FREE(buf) in common_free_enc_buffer()
There's no need to do gss-api specific stuff, the buffer is always
malloc'ed.
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smb_seal.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/source3/libsmb/smb_seal.c b/source3/libsmb/smb_seal.c index 935144dacc..950f3e3822 100644 --- a/source3/libsmb/smb_seal.c +++ b/source3/libsmb/smb_seal.c @@ -444,18 +444,5 @@ void common_free_enc_buffer(struct smb_trans_enc_state *es, char *buf) return; } - if (es->smb_enc_type == SMB_TRANS_ENC_NTLM) { - SAFE_FREE(buf); - return; - } - -#if defined(HAVE_GSSAPI) && defined(HAVE_KRB5) - if (es->smb_enc_type == SMB_TRANS_ENC_GSS) { - OM_uint32 min; - gss_buffer_desc rel_buf; - rel_buf.value = buf; - rel_buf.length = smb_len_nbt(buf) + 4; - gss_release_buffer(&min, &rel_buf); - } -#endif + SAFE_FREE(buf); } |