Skip to content

nwrap_files_getaddrinfo: avoid crash on empty name

When name is "", we would deref name[-1]. If by chance name[-1] was '.', we also tried to copy all of memory from one place to another.

Rather than just guard the immediate next branch, let's assume the empty name is never found.

Signed-off-by: Douglas Bagnall douglas.bagnall@catalyst.net.nz

Merge request reports