mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-24 04:55:54 +00:00
Demote port comparison from an assert to an error
This commit is contained in:
parent
545c05fddb
commit
c6eafb5380
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user