mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
fixed silly allocation bug
This commit is contained in:
parent
a255ea76ae
commit
57c1dbc21d
3 changed files with 7 additions and 3 deletions
|
@ -1139,7 +1139,7 @@ parse_signature( IOBUF inp, int pkttype, unsigned long pktlen,
|
|||
goto leave;
|
||||
}
|
||||
if( n ) {
|
||||
/* we add 6 extra bytes so that we have space for the signature
|
||||
/* we add 8 extra bytes so that we have space for the signature
|
||||
* status cache. Well we are wastin this if there is a cache
|
||||
* packet already, but in the other case it avoids an realloc */
|
||||
sig->unhashed = m_alloc (sizeof(*sig->unhashed) + n + 8 - 1 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue