manager: Restore direct return if database URI is not defined
authorTobias Brunner <tobias@strongswan.org>
Mon, 17 Sep 2018 14:30:51 +0000 (16:30 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 17 Sep 2018 16:51:42 +0000 (18:51 +0200)
There was an exit anyway because storage_create() returns NULL if the
database can't be created.

src/manager/main.c

index 1ba8b1e..dbde1c0 100644 (file)
@@ -50,7 +50,7 @@ int main (int arc, char *argv[])
        {
                DBG1(DBG_LIB, "database URI undefined, set manager.database "
                         "in strongswan.conf");
-               //return 1;
+               return 1;
        }
 
        storage = storage_create(database);