From dd868acb0d13a9f119c0536777350a6c237a66a1 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Tue, 19 Mar 2013 11:25:25 -0400 Subject: [PATCH] gpg: Allow setting of all zero key flags * g10/keygen.c (do_add_key_flags): Do not check for empty key flags. (cherry picked from commit b693ec02c467696bf9d7324dd081e279f9965151) --- g10/keygen.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/g10/keygen.c b/g10/keygen.c index d40687817..3222c55f0 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -219,9 +219,6 @@ do_add_key_flags (PKT_signature *sig, unsigned int use) if (use & PUBKEY_USAGE_AUTH) buf[0] |= 0x20; - if (!buf[0]) - return; - build_sig_subpkt (sig, SIGSUBPKT_KEY_FLAGS, buf, 1); }