diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-04-24 15:27:31 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-07-08 18:49:26 +0200 |
commit | 82aceeb151eb5ff5f37eed08e6d2d4bd106ae388 (patch) | |
tree | c6b1a24eec2f7a1cf01b6e33b3084d65b9e37f63 | |
parent | ad39ce314b009486c2cddab4807e07ba5754370d (diff) | |
download | strongswan-82aceeb151eb5ff5f37eed08e6d2d4bd106ae388.tar.bz2 strongswan-82aceeb151eb5ff5f37eed08e6d2d4bd106ae388.tar.xz |
libtnccs: Don't try to load IMCs/IMVs from a file if there is no filename
-rw-r--r-- | src/libtnccs/tnc/tnc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libtnccs/tnc/tnc.c b/src/libtnccs/tnc/tnc.c index 769b9fa54..3a5b84596 100644 --- a/src/libtnccs/tnc/tnc.c +++ b/src/libtnccs/tnc/tnc.c @@ -100,6 +100,11 @@ static bool load_imcvs_from_config(char *filename, bool is_imc) void *addr; char *label; + if (!filename || !*filename) + { + return TRUE; + } + label = is_imc ? "IMC" : "IMV"; DBG1(DBG_TNC, "loading %ss from '%s'", label, filename); |