diff options
author | Jeremy Allison <jra@samba.org> | 2008-02-28 06:01:09 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-02-28 06:01:09 -0800 |
commit | 6e2e0e2ce7ebef473cf8f8787363500eb090d692 (patch) | |
tree | 9b5c97e87fc0e3f7f330c9de7eea02fe6595737a /source3/libsmb | |
parent | a763f4b79f56b09d633114aed776f168356741ae (diff) | |
download | samba-6e2e0e2ce7ebef473cf8f8787363500eb090d692.tar.gz samba-6e2e0e2ce7ebef473cf8f8787363500eb090d692.tar.bz2 samba-6e2e0e2ce7ebef473cf8f8787363500eb090d692.zip |
Fix the build - don't use SMB_TRANS_ENC_GSS without
KRB5.
Jeremy.
(This used to be commit d16c295642c3df49be02440427ded0cd9b4179f5)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifsinfo.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/libsmb/clifsinfo.c b/source3/libsmb/clifsinfo.c index f4945f812a..0005c3908a 100644 --- a/source3/libsmb/clifsinfo.c +++ b/source3/libsmb/clifsinfo.c @@ -368,20 +368,16 @@ static struct smb_trans_enc_state *make_cli_enc_state(enum smb_trans_enc_type sm ZERO_STRUCTP(es); es->smb_enc_type = smb_enc_type; - if (smb_enc_type == SMB_TRANS_ENC_GSS) { #if defined(HAVE_GSSAPI) && defined(HAVE_KRB5) + if (smb_enc_type == SMB_TRANS_ENC_GSS) { es->s.gss_state = SMB_MALLOC_P(struct smb_tran_enc_state_gss); if (!es->s.gss_state) { SAFE_FREE(es); return NULL; } ZERO_STRUCTP(es->s.gss_state); -#else - DEBUG(0,("make_cli_enc_state: no krb5 compiled.\n")); - SAFE_FREE(es); - return NULL; -#endif } +#endif return es; } |