git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82175c0
)
dns: Simplify logic a bit
author
Volker Lendecke
<vl@samba.org>
Thu, 31 May 2018 18:56:31 +0000
(20:56 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Fri, 1 Jun 2018 09:28:22 +0000
(11:28 +0200)
We've done an early return if (!found_tsig) a few lines before.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/dns_server/dns_crypto.c
patch
|
blob
|
history
diff --git
a/source4/dns_server/dns_crypto.c
b/source4/dns_server/dns_crypto.c
index 0be9b8209aa2f85926609e7bc7a2b71a2ad12527..c8b5c46ad30165e5fc696c2bc197187e915e10a0 100644
(file)
--- a/
source4/dns_server/dns_crypto.c
+++ b/
source4/dns_server/dns_crypto.c
@@
-123,7
+123,7
@@
WERROR dns_verify_tsig(struct dns_server *dns,
}
/* The TSIG record needs to be the last additional record */
- if (
found_tsig &&
i + 1 != packet->arcount) {
+ if (i + 1 != packet->arcount) {
DEBUG(1, ("TSIG record not the last additional record!\n"));
return DNS_ERR(FORMAT_ERROR);
}