]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/dnssec.c
ipsec-146.3.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / dnssec.c
index 2f1dc258e752a2e27991afa00d628ba5199689bd..bd4cd000866ed58135983bcae95d9d004d5e9824 100644 (file)
@@ -1,3 +1,5 @@
+/*     $NetBSD: dnssec.c,v 1.4 2006/09/09 16:22:09 manu Exp $  */
+
 /*     $KAME: dnssec.c,v 1.2 2001/08/05 18:46:07 itojun Exp $  */
 
 /*
@@ -94,7 +96,7 @@ dnssec_getcert(id)
                        "impropper ID type passed %s "
                        "though getcert method is dnssec.\n",
                        s_ipsecdoi_ident(id_b->type));
-               return NULL;
+               goto err;
        }
 
        /* check response */
@@ -143,7 +145,10 @@ end:
 err:
        if (name)
                racoon_free(name);
-       if (cert)
+       if (cert) {
                oakley_delcert(cert);
+               cert = NULL;
+       }
+
        goto end;
 }