From c6eafb538049997dadf82ef3beae8aa3abfd5449 Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Sat, 1 Sep 2012 12:21:32 +0930 Subject: [PATCH] Demote port comparison from an assert to an error --- overlay_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overlay_interface.c b/overlay_interface.c index 49048aa6..80ddbe86 100644 --- a/overlay_interface.c +++ b/overlay_interface.c @@ -322,7 +322,8 @@ static int overlay_interface_init_any(int port){ if (sock_any.poll.fd>0){ // Check the port number matches - assert(sock_any_addr.sin_port == htons(port)); + if (sock_any_addr.sin_port != htons(port)) + return WHYF("Unable to listen to broadcast packets for ports %d & %d", port, ntohs(sock_any_addr.sin_port)); return 0; }