summaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-06-01 13:59:09 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2016-06-01 14:04:41 +0200
commitdb1ecc8212defdd183abbb6b1407fcc8d2dc9552 (patch)
tree03186baee8d625aff0ca05cb521446b5b7b58c87 /g10/build-packet.c
parentgpg: New status code NOTATION_FLAGS. (diff)
downloadgnupg2-db1ecc8212defdd183abbb6b1407fcc8d2dc9552.tar.xz
gnupg2-db1ecc8212defdd183abbb6b1407fcc8d2dc9552.zip
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>
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r--g10/build-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 4bfc2ac10..1353a863c 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -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;