mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-24 15:17:02 +01:00
gpg: Replace an assert by a log_fatal.
* g10/build-packet.c (do_signature): Use log_fatal. -- GnuPG-bug-id: 5809
This commit is contained in:
parent
58532fe56c
commit
c8c71fc716
@ -1504,9 +1504,12 @@ do_signature( IOBUF out, int ctb, PKT_signature *sig )
|
|||||||
{
|
{
|
||||||
iobuf_put( a, 3 );
|
iobuf_put( a, 3 );
|
||||||
|
|
||||||
/* Version 3 packets don't support subpackets. */
|
/* Version 3 packets don't support subpackets. Actually we
|
||||||
log_assert (! sig->hashed);
|
* should never get to here but real life is different and thus
|
||||||
log_assert (! sig->unhashed);
|
* we now use a log_fatal instead of a log_assert here. */
|
||||||
|
if (sig->hashed || sig->unhashed)
|
||||||
|
log_fatal ("trying to write a subpacket to a v3 signature (%d,%d)\n",
|
||||||
|
!!sig->hashed, !!sig->unhashed);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
iobuf_put( a, sig->version );
|
iobuf_put( a, sig->version );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user