Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Neatened formatting.
  • Loading branch information
frankarinnet committed Oct 23, 2023
commit 2def163288959c51760b1fba4a3020694d3389d9
4 changes: 2 additions & 2 deletions src/main/java/org/xbill/DNS/TSIG.java
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public int verify(Message m, byte[] messageBytes, TSIGRecord requestTSIG, boolea
m.tsigState = Message.TSIG_FAILED;
TSIGRecord tsig = m.getTSIG();

if( fullSignature ) {
if (fullSignature) {
if (!tsig.getName().equals(name) || !tsig.getAlgorithm().equals(alg)) {
log.debug(
"BADKEY failure on message id {}, expected: {}/{}, actual: {}/{}",
Expand Down Expand Up @@ -643,7 +643,7 @@ public int verify(Message m, byte[] messageBytes, TSIGRecord requestTSIG, boolea

// TODO: style question whether to prefer "return early" or to have a single return at the end.
// return early for the intermediate messages between tsigs
if( tsig == null ) {
if (tsig == null) {
m.tsigState = Message.TSIG_INTERMEDIATE;
return Rcode.NOERROR;
}
Expand Down