diff --git a/lib/proto/types.c b/lib/proto/types.c index 7c87e8204..e5fb5cba1 100644 --- a/lib/proto/types.c +++ b/lib/proto/types.c @@ -464,7 +464,7 @@ int ogs_sockaddr_to_ip( ogs_error("No IP"); return OGS_ERROR; } - if (!addr && !addr) { + if (!addr && !addr6) { ogs_error("No Address"); return OGS_ERROR; }