Fixed deinit for charon --version.
authorTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 14:24:50 +0000 (15:24 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 17:53:10 +0000 (18:53 +0100)
src/charon/charon.c

index d33d00f..2a90d86 100644 (file)
@@ -340,7 +340,8 @@ int main(int argc, char *argv[])
                                break;
                        case 'v':
                                printf("Linux strongSwan %s\n", VERSION);
-                               exit(0);
+                               status = 0;
+                               goto deinit;
                        case 'l':
                                use_syslog = TRUE;
                                continue;