]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 2 Dec 2002 07:16:47 +0000 (07:16 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 2 Dec 2002 07:16:47 +0000 (07:16 +0000)
doc/tex/ex-pgp-keyserver.tex

index b94dc7e5579348606cdb2147fb4197ba655d28f9..2093363ef890fdd1720152c779742199c31bd643 100644 (file)
@@ -4,6 +4,7 @@
  * to retrieve an OpenPGP key from a key server.
  */
 
+#include <stdlib.h>
 #include <gnutls/gnutls.h>
 #include <gnutls/extra.h>
 #include <opencdk.h>
@@ -35,7 +36,7 @@ recv_openpgp_key(const unsigned char *keyfpr, unsigned int
 
    /* The key id is the last 4 bytes of the key fingerprint
     */
-   keyid = keyfpr[16];
+   keyid = &keyfpr[16];
 
    if (key == NULL) {
       return -1;