Changeset 4607
- Timestamp:
- 11/10/08 17:42:05 (2 months ago)
- Files:
-
- trunk/src/libstrongswan/utils/host.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/libstrongswan/utils/host.c
r4601 r4607 393 393 host_t *host_create_from_string(char *string, u_int16_t port) 394 394 { 395 private_host_t *this = host_create_empty();395 private_host_t *this; 396 396 397 397 if (streq(string, "%any")) … … 399 399 return host_create_any(AF_INET); 400 400 } 401 else if (strchr(string, '.')) 401 402 this = host_create_empty(); 403 if (strchr(string, '.')) 402 404 { 403 405 this->address.sa_family = AF_INET; … … 407 409 this->address.sa_family = AF_INET6; 408 410 } 409 410 411 switch (this->address.sa_family) 411 412 {
