Skip to content

Commit 3a9cc94

Browse files
bryanmcnultyrtpt-erikgeiser
authored andcommitted
Fix linter errors
1 parent ee7e214 commit 3a9cc94

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

credentials.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ func addKeyToKeytab(kt *keytab.Keytab, username string, domain string, key strin
352352

353353
// ParseAESKey decodes the supplied hex Kerberos AES key and determines the key type.
354354
func ParseAESKey(key string) (keyBytes []byte, keyType int32, err error) {
355-
356355
keyBytes, err = hex.DecodeString(key)
357356
if err != nil {
358357
return nil, 0, fmt.Errorf("decode hex key: %w", err)
@@ -366,5 +365,6 @@ func ParseAESKey(key string) (keyBytes []byte, keyType int32, err error) {
366365
default:
367366
return nil, 0, fmt.Errorf("invalid AES128/AES256 key")
368367
}
368+
369369
return
370370
}

dcerpcauth/dcerpcauth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ func DCERPCCredentials(ctx context.Context, creds *adauth.Credential, options *O
135135
if err != nil {
136136
return nil, fmt.Errorf("parse AES key: %w", err)
137137
}
138+
138139
return credential.NewFromEncryptionKeyBytes(creds.LogonNameWithUpperCaseDomain(), int(keyType), key), nil
139140
case creds.NTHash != "":
140141
options.debug("Authenticating with NT hash")

0 commit comments

Comments
 (0)