]> git.saurik.com Git - apple/network_cmds.git/blobdiff - racoon.tproj/remoteconf.c
network_cmds-245.19.tar.gz
[apple/network_cmds.git] / racoon.tproj / remoteconf.c
index 09089760f861a161543f2ea87f205a4f6ddafb43..8e12a8d1ad812aa9c690db5be3e5e28102965fd7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $KAME: remoteconf.c,v 1.28 2001/10/02 03:46:41 sakane Exp $     */
+/*     $KAME: remoteconf.c,v 1.29 2001/12/07 08:39:39 sakane Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -174,12 +174,26 @@ void
 delrmconf(rmconf)
        struct remoteconf *rmconf;
 {
+       
        if (rmconf->etypes)
                deletypes(rmconf->etypes);
        if (rmconf->dhgrp)
                oakley_dhgrp_free(rmconf->dhgrp);
        if (rmconf->proposal)
                delisakmpsa(rmconf->proposal);
+       if (rmconf->idv)
+               vfree(rmconf->idv);
+       if (rmconf->idv_p)
+               vfree(rmconf->idv_p);
+       if (rmconf->remote)
+               racoon_free(rmconf->remote);
+       if (rmconf->shared_secret)
+               vfree(rmconf->shared_secret);
+       if (rmconf->keychainCertRef)
+               CFRelease(rmconf->keychainCertRef);
+       if (rmconf->open_dir_auth_group)
+               vfree(rmconf->open_dir_auth_group);
+       
        racoon_free(rmconf);
 }