diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils/identification.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c index 369d481fb..06ab39077 100644 --- a/src/libstrongswan/utils/identification.c +++ b/src/libstrongswan/utils/identification.c @@ -828,6 +828,9 @@ static private_identification_t *identification_create(void) identification_t *identification_create_from_string(char *string) { private_identification_t *this = identification_create(); + + if (string == NULL) + string = "%any"; if (strchr(string, '=') != NULL) { |