summaryrefslogtreecommitdiff
path: root/source4/libcli/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-08-25 07:13:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:21 -0500
commit18797d8c70afc383aa7c67003646efb8ecfd7e4f (patch)
treeab89da2228bba9b490fcb0a08a0350ab859f6521 /source4/libcli/auth
parentfadc0e46f75ffd0b26bf159c182a08c979a7f569 (diff)
downloadsamba-18797d8c70afc383aa7c67003646efb8ecfd7e4f.tar.gz
samba-18797d8c70afc383aa7c67003646efb8ecfd7e4f.tar.bz2
samba-18797d8c70afc383aa7c67003646efb8ecfd7e4f.zip
r2054: Fix compile warnings/build failures on non-gcc.
Andrew Bartlett (This used to be commit 2cbbf123d26081687a15eb7b82738e8187153ba4)
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r--source4/libcli/auth/gensec_krb5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c
index 72def2d79e..569fd81206 100644
--- a/source4/libcli/auth/gensec_krb5.c
+++ b/source4/libcli/auth/gensec_krb5.c
@@ -110,7 +110,9 @@ static NTSTATUS gensec_krb5_decode_pac(TALLOC_CTX *mem_ctx,
struct PAC_SIGNATURE_DATA *kdc_sig_ptr;
struct PAC_LOGON_INFO *logon_info = NULL;
struct PAC_DATA pac_data;
+#ifdef KRB5_DO_VERIFY_PAC
DATA_BLOB tmp_blob = data_blob(NULL, 0);
+#endif
int i;
status = ndr_pull_struct_blob(&blob, mem_ctx, &pac_data,
@@ -325,7 +327,6 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security
}
} else {
krb5_data in_data;
- in_data.length = 0;
const char *hostname = gensec_get_target_hostname(gensec_security);
if (!hostname) {
DEBUG(1, ("Could not determine hostname for target computer, cannot use kerberos\n"));