X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=g10%2Frevoke.c;h=846523295257daaee590d6bebfef2ff851d8e87b;hb=8601db8a702e59fe82e777c44d09d7d0a1326cb8;hp=4578700825b9527c983d12ee78e5712a1b0ec52c;hpb=2139edc88d3496b81f2da0efead0f8111b6696fb;p=platform%2Fupstream%2Fgpg2.git diff --git a/g10/revoke.c b/g10/revoke.c index 4578700..8465232 100644 --- a/g10/revoke.c +++ b/g10/revoke.c @@ -536,7 +536,20 @@ gen_standard_revoke (ctrl_t ctrl, PKT_public_key *psk, const char *cache_nonce) dir = get_openpgp_revocdir (gnupg_homedir ()); tmpstr = hexfingerprint (psk, NULL, 0); - fname = xstrconcat (dir, DIRSEP_S, tmpstr, NULL); + if (!tmpstr) + { + rc = gpg_error_from_syserror (); + xfree (dir); + return rc; + } + fname = strconcat (dir, DIRSEP_S, tmpstr, NULL); + if (!fname) + { + rc = gpg_error_from_syserror (); + xfree (tmpstr); + xfree (dir); + return rc; + } xfree (tmpstr); xfree (dir);