@@ -409,7 +409,8 @@ gss_import_name(OM_uint32 *minor_status,
409
409
PP (" Host-based service now %ls" , value);
410
410
}
411
411
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;
413
414
if (name == NULL ) {
414
415
goto err;
415
416
}
@@ -533,15 +534,18 @@ gss_export_name(OM_uint32 *minor_status,
533
534
}
534
535
PP (" Make fullname: %ls -> %ls" , name, fullname);
535
536
int len;
536
- size_t namelen = wcslen (fullname);
537
+ size_t namelen;
538
+ namelen = wcslen (fullname);
537
539
if (namelen > 255 ) {
538
540
goto err;
539
541
}
540
542
len = (int )namelen;
541
543
// We only deal with not-so-long names.
542
544
// 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);
545
549
if (buffer == NULL ) {
546
550
goto err;
547
551
}
@@ -904,7 +908,8 @@ gss_init_sec_context(OM_uint32 *minor_status,
904
908
}
905
909
outName[len] = 0 ;
906
910
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;
908
913
909
914
outBuffDesc.ulVersion = SECBUFFER_VERSION;
910
915
outBuffDesc.cBuffers = 1 ;
0 commit comments