diff options
author | Werner Koch <wk@gnupg.org> | 2008-04-07 21:31:12 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-04-07 21:31:12 +0200 |
commit | 86f35a55d01f1ef7aec2b303a722ff5733148aa4 (patch) | |
tree | 99cb8163a8db0deba06608fec178ea9ad602e5c0 /common/pka.c | |
parent | Fixed last yat2m change. (diff) | |
download | gnupg2-86f35a55d01f1ef7aec2b303a722ff5733148aa4.tar.xz gnupg2-86f35a55d01f1ef7aec2b303a722ff5733148aa4.zip |
Minor cleanups.
Implemented key helper kdns
Diffstat (limited to 'common/pka.c')
-rw-r--r-- | common/pka.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/pka.c b/common/pka.c index f592cb037..79a0bc3f5 100644 --- a/common/pka.c +++ b/common/pka.c @@ -119,7 +119,9 @@ get_pka_info (const char *address, unsigned char *fpr) if (!domain || domain == address || !domain[1]) return NULL; /* invalid mail address given. */ - name = malloc (strlen (address) + 5 + 1); + name = xtrymalloc (strlen (address) + 5 + 1); + if (!name) + return NULL; memcpy (name, address, domain - address); strcpy (stpcpy (name + (domain-address), "._pka."), domain+1); |