Skip to content

Commit 10db60b

Browse files
author
duke
committedNov 2, 2023
Automatic merge of jdk:master into master
2 parents 325b983 + 64f8253 commit 10db60b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed
 

‎src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp

+10-5
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,8 @@ gss_import_name(OM_uint32 *minor_status,
409409
PP("Host-based service now %ls", value);
410410
}
411411
PP("import_name to %ls", value);
412-
gss_name_struct* name = new gss_name_struct;
412+
gss_name_struct* name;
413+
name = new gss_name_struct;
413414
if (name == NULL) {
414415
goto err;
415416
}
@@ -533,15 +534,18 @@ gss_export_name(OM_uint32 *minor_status,
533534
}
534535
PP("Make fullname: %ls -> %ls", name, fullname);
535536
int len;
536-
size_t namelen = wcslen(fullname);
537+
size_t namelen;
538+
namelen = wcslen(fullname);
537539
if (namelen > 255) {
538540
goto err;
539541
}
540542
len = (int)namelen;
541543
// We only deal with not-so-long names.
542544
// 04 01 00 ** 06 ** OID len:int32 name
543-
int mechLen = KRB5_OID.length;
544-
char* buffer = (char*) malloc(10 + mechLen + len);
545+
int mechLen;
546+
mechLen = KRB5_OID.length;
547+
char* buffer;
548+
buffer = (char*) malloc(10 + mechLen + len);
545549
if (buffer == NULL) {
546550
goto err;
547551
}
@@ -904,7 +908,8 @@ gss_init_sec_context(OM_uint32 *minor_status,
904908
}
905909
outName[len] = 0;
906910

907-
int flag = flag_gss_to_sspi(req_flags) | ISC_REQ_ALLOCATE_MEMORY;
911+
int flag;
912+
flag = flag_gss_to_sspi(req_flags) | ISC_REQ_ALLOCATE_MEMORY;
908913

909914
outBuffDesc.ulVersion = SECBUFFER_VERSION;
910915
outBuffDesc.cBuffers = 1;

‎src/java.security.jgss/windows/native/libw2k_lsa_auth/NativeCreds.c

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ BOOL native_debug = 0;
7575

7676
BOOL PackageConnectLookup(PHANDLE,PULONG);
7777

78+
static
7879
NTSTATUS ConstructTicketRequest(JNIEnv *env,
7980
UNICODE_STRING DomainName,
8081
PKERB_RETRIEVE_TKT_REQUEST *outRequest,

0 commit comments

Comments
 (0)
Please sign in to comment.