NULL string argument is treated as %any
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 12 Jun 2006 08:26:14 +0000 (08:26 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 12 Jun 2006 08:26:14 +0000 (08:26 -0000)
src/libstrongswan/utils/identification.c

index 369d481..06ab390 100644 (file)
@@ -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)
        {