Changeset 584 for trunk/src/sh_ipvx.c


Ignore:
Timestamp:
Jan 2, 2025, 10:13:23 AM (8 days ago)
Author:
katerina
Message:

Fix for ticket #472 (segfault on startup with static binary and no fqdn)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_ipvx.c

    r560 r584  
    316316    return host_entry->h_name;
    317317  } else {
    318     for (p = host_entry->h_aliases; *p; ++p) {
     318    for (p = host_entry->h_aliases; (p && *p); ++p) {
    319319      if (strchr(*p, '.'))
    320320        return *p;
Note: See TracChangeset for help on using the changeset viewer.