diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-06-12 08:26:14 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-06-12 08:26:14 +0000 |
commit | fec9cb332fe199d3adc88d42f27e351b6f69d0c3 (patch) | |
tree | 72a7ef301c65cd005753eb11aa2bde60bd5447ef /src | |
parent | bc35460db7142f60806b00dcfb6cabab32a8afc2 (diff) | |
download | strongswan-fec9cb332fe199d3adc88d42f27e351b6f69d0c3.tar.bz2 strongswan-fec9cb332fe199d3adc88d42f27e351b6f69d0c3.tar.xz |
NULL string argument is treated as %any
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) { |