diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-12-13 13:08:54 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-03-20 17:31:20 +0100 |
commit | e6503db2cf3e922f4efbcae113cf9f9fe8e31390 (patch) | |
tree | bb2b654357d6f1493d53afd630be8e5261ef2eec /src | |
parent | 9f10b95a3b223492930097d46a8f781a4aef88f4 (diff) | |
download | strongswan-e6503db2cf3e922f4efbcae113cf9f9fe8e31390.tar.bz2 strongswan-e6503db2cf3e922f4efbcae113cf9f9fe8e31390.tar.xz |
Fixed SIGSEGV when logging peer config matches.
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/config/backend_manager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcharon/config/backend_manager.c b/src/libcharon/config/backend_manager.c index 5fe137ed5..e7e7a9055 100644 --- a/src/libcharon/config/backend_manager.c +++ b/src/libcharon/config/backend_manager.c @@ -195,12 +195,13 @@ static id_match_t get_peer_match(identification_t *id, auth_cfg_t *auth; identification_t *candidate; id_match_t match = ID_MATCH_NONE; + char *where = local ? "local" : "remote"; chunk_t data; if (!id) { DBG3(DBG_CFG, "peer config match %s: %d (%N)", - local ? "local" : "remote", ID_MATCH_ANY, id_type_names, ID_ANY); + where, ID_MATCH_ANY, id_type_names, ID_ANY); return ID_MATCH_ANY; } @@ -227,7 +228,7 @@ static id_match_t get_peer_match(identification_t *id, data = id->get_encoding(id); DBG3(DBG_CFG, "peer config match %s: %d (%N -> %#B)", - match, id_type_names, id->get_type(id), &data); + where, match, id_type_names, id->get_type(id), &data); return match; } |