summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2023-02-23 19:43:42 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2023-03-21 20:30:07 +0900
commitd1e8304a9ebd688fff94064926f92fa4480a6987 (patch)
treed56731d9602fc7a3410a7ab0df79549504bd8cef /lib
parent1f80535588f1816d7a32d47189fe67decc592083 (diff)
downloadbind-d1e8304a9ebd688fff94064926f92fa4480a6987.tar.gz
bind-d1e8304a9ebd688fff94064926f92fa4480a6987.tar.bz2
bind-d1e8304a9ebd688fff94064926f92fa4480a6987.zip
Free ctx on invalid siglen Change-Id: I7682b5711d9799f117021c3dc96881593311b061
Diffstat (limited to 'lib')
-rw-r--r--lib/dns/openssleddsa_link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dns/openssleddsa_link.c b/lib/dns/openssleddsa_link.c
index 32bd02ef..8239c666 100644
--- a/lib/dns/openssleddsa_link.c
+++ b/lib/dns/openssleddsa_link.c
@@ -405,11 +405,11 @@ openssleddsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
}
#endif
if (siglen == 0) {
- return (ISC_R_NOTIMPLEMENTED);
+ DST_RET(ISC_R_NOTIMPLEMENTED);
}
if (sig->length != siglen)
- return (DST_R_VERIFYFAILURE);
+ DST_RET(DST_R_VERIFYFAILURE);
isc_buffer_usedregion(buf, &tbsreg);