From f77d6e16d2f50645ab7099eb1ac72b2059da994f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 12 Apr 2013 19:32:01 +0200 Subject: [PATCH] charon-cmd: match_me/match_other are optional in callback credentials --- src/charon-cmd/cmd/cmd_creds.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/charon-cmd/cmd/cmd_creds.c b/src/charon-cmd/cmd/cmd_creds.c index 9a37edff50..4626c6dbea 100644 --- a/src/charon-cmd/cmd/cmd_creds.c +++ b/src/charon-cmd/cmd/cmd_creds.c @@ -96,7 +96,14 @@ static shared_key_t* callback_shared(private_cmd_creds_t *this, return NULL; } this->prompted = TRUE; - *match_me = *match_other = ID_MATCH_PERFECT; + if (match_me) + { + *match_me = ID_MATCH_PERFECT; + } + if (match_other) + { + *match_other = ID_MATCH_PERFECT; + } return shared_key_create(type, chunk_clone(chunk_from_str(pwd))); }