mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-16 23:52:40 -04:00
initalize sigsize to zero; ATF_CHECK_EQ(sigsize, tsig.siglen);
(cherry picked from commit 9f61f6b46b)
This commit is contained in:
parent
0163c3b813
commit
d8cb1587ec
1 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ add_tsig(dst_context_t *tsigctx, dns_tsigkey_t *key, isc_buffer_t *target) {
|
|||
isc_stdtime_t now;
|
||||
unsigned char tsigbuf[1024];
|
||||
unsigned int count;
|
||||
unsigned int sigsize;
|
||||
unsigned int sigsize = 0;
|
||||
isc_boolean_t invalidate_ctx = ISC_FALSE;
|
||||
|
||||
memset(&tsig, 0, sizeof(tsig));
|
||||
|
|
@ -110,6 +110,7 @@ add_tsig(dst_context_t *tsigctx, dns_tsigkey_t *key, isc_buffer_t *target) {
|
|||
isc_buffer_init(&sigbuf, tsig.signature, sigsize);
|
||||
CHECK(dst_context_sign(tsigctx, &sigbuf));
|
||||
tsig.siglen = isc_buffer_usedlength(&sigbuf);
|
||||
ATF_CHECK_EQ(sigsize, tsig.siglen);
|
||||
|
||||
CHECK(isc_buffer_allocate(mctx, &dynbuf, 512));
|
||||
CHECK(dns_rdata_fromstruct(&rdata, dns_rdataclass_any,
|
||||
|
|
|
|||
Loading…
Reference in a new issue