mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-09 19:37:43 +02:00
Fixup bad free.
git-svn-id: file:///svn/unbound/trunk@1635 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
3 June 2009: Wouter
|
||||
- fixup bad free() when wrongly encoded DSA signature is seen.
|
||||
Reported by Paul Wouters.
|
||||
|
||||
2 June 2009: Wouter
|
||||
- --enable-sha2 option. The draft rsasha256 changed its algorithm
|
||||
numbers too often. Therefore it is more prudent to disable the
|
||||
|
||||
@@ -1193,7 +1193,7 @@ setup_dsa_sig(unsigned char** sig, unsigned int* len)
|
||||
*sig = NULL;
|
||||
newlen = i2d_DSA_SIG(dsasig, sig);
|
||||
if(newlen < 0) {
|
||||
free(sig);
|
||||
free(*sig);
|
||||
return 0;
|
||||
}
|
||||
*len = (unsigned int)newlen;
|
||||
|
||||
Reference in New Issue
Block a user