~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to common/pka.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
  if (!domain || domain == address || !domain[1])
120
120
    return NULL; /* invalid mail address given. */
121
121
 
122
 
  name = malloc (strlen (address) + 5 + 1);
 
122
  name = xtrymalloc (strlen (address) + 5 + 1);
 
123
  if (!name)
 
124
    return NULL;
123
125
  memcpy (name, address, domain - address);
124
126
  strcpy (stpcpy (name + (domain-address), "._pka."), domain+1);
125
127