diff options
author | Martin Willi <martin@strongswan.org> | 2009-06-19 12:01:52 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-06-22 15:47:17 +0200 |
commit | a0fc89798a77f6dd1f3af7306248e6b9d4bb3912 (patch) | |
tree | b2066855ff79c634dcb04d81085e5e3b6d48f49d /src/pluto/plutomain.c | |
parent | 70f59fab9b843e5ec71a7446ebc6a16a286dcc88 (diff) | |
download | strongswan-a0fc89798a77f6dd1f3af7306248e6b9d4bb3912.tar.bz2 strongswan-a0fc89798a77f6dd1f3af7306248e6b9d4bb3912.tar.xz |
library initialization fails if libstrongswan checksum is invalid
Diffstat (limited to 'src/pluto/plutomain.c')
-rw-r--r-- | src/pluto/plutomain.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pluto/plutomain.c b/src/pluto/plutomain.c index 39367cafa..a9377cba7 100644 --- a/src/pluto/plutomain.c +++ b/src/pluto/plutomain.c @@ -265,7 +265,10 @@ int main(int argc, char **argv) #endif /* CAPABILITIES */ /* initialize library and optionsfrom */ - library_init(STRONGSWAN_CONF); + if (!library_init(STRONGSWAN_CONF)) + { + abort(); + } options = options_create(); /* handle arguments */ |