diff --git a/examples/h09server.cc b/examples/h09server.cc index 4a057323618ee2fef3f667dcb430aedac47bba81..4681b84888b3e0ff0441abb2d2d1f9dc4939376c 100644 --- a/examples/h09server.cc +++ b/examples/h09server.cc @@ -1547,7 +1547,7 @@ int create_sock(Address &local_addr, const char *addr, const char *port, hints.ai_socktype = SOCK_DGRAM; hints.ai_flags = AI_PASSIVE; - if (strcmp("addr", "*") == 0) { + if (strcmp(addr, "*") == 0) { addr = nullptr; }