Fix a resolver crash and an v4-compatible address parsing crash.