summaryrefslogtreecommitdiff
path: root/source3/smbd/sesssetup.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-01 18:11:59 +0000
committerJeremy Allison <jra@samba.org>2003-05-01 18:11:59 +0000
commita5e8ba3c76c8a340d29299d43529ea9fef2dad59 (patch)
tree4d6137f42dbf0a2fa42b60169277f9413c12bda5 /source3/smbd/sesssetup.c
parent731eba7dedbad1756cad9bd89186ce83e2d1002a (diff)
downloadsamba-a5e8ba3c76c8a340d29299d43529ea9fef2dad59.tar.gz
samba-a5e8ba3c76c8a340d29299d43529ea9fef2dad59.tar.bz2
samba-a5e8ba3c76c8a340d29299d43529ea9fef2dad59.zip
Fix uninitialized blobs reported by Luke Howard.
Jeremy. (This used to be commit e954ca2ce8ec6b36794585c3bc948140cf9e7947)
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r--source3/smbd/sesssetup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 3fa3fa411f..a9842424a5 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -153,6 +153,12 @@ static int reply_spnego_kerberos(connection_struct *conn,
uint8 tok_id[2];
BOOL foreign = False;
+ ZERO_STRUCT(ticket);
+ ZERO_STRUCT(auth_data);
+ ZERO_STRUCT(ap_rep);
+ ZERO_STRUCT(ap_rep_wrapped);
+ ZERO_STRUCT(response);
+
if (!spnego_parse_krb5_wrap(*secblob, &ticket, tok_id)) {
return ERROR_NT(NT_STATUS_LOGON_FAILURE);
}