In mode_config, destroy temporary pool list instead of the virtual IP list twice
authorMartin Willi <martin@revosec.ch>
Wed, 5 Sep 2012 12:18:52 +0000 (14:18 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 5 Sep 2012 12:18:52 +0000 (14:18 +0200)
src/libcharon/sa/ikev1/tasks/mode_config.c

index ef1b35c..03072a2 100644 (file)
@@ -393,7 +393,7 @@ METHOD(task_t, build_r, status_t,
        }
        enumerator->destroy(enumerator);
        vips->destroy_offset(vips, offsetof(host_t, destroy));
-       vips->destroy(vips);
+       pools->destroy(pools);
 
        if (cp)
        {