mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
g10: Allow User ID length >= 256.
* build-packet.c (do_user_id): Call write_header2 with HDRLEN not set. -- Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> GnuPG-bug-id: 2374 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
67a4bc8d53
commit
db1ecc8212
@ -329,7 +329,7 @@ do_user_id( IOBUF out, int ctb, PKT_user_id *uid )
|
||||
}
|
||||
else
|
||||
{
|
||||
write_header2( out, ctb, uid->len, 2 );
|
||||
write_header2( out, ctb, uid->len, 0 );
|
||||
rc = iobuf_write( out, uid->name, uid->len );
|
||||
}
|
||||
return rc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user