From: Guus Sliepen Date: Wed, 3 Jun 2020 19:19:09 +0000 (+0200) Subject: Don't crash when trying to connect a channel to port 0. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=21e47177687ac553303005941b971092e973575a;p=meshlink Don't crash when trying to connect a channel to port 0. --- diff --git a/src/utcp.c b/src/utcp.c index f81150bf..ec74923d 100644 --- a/src/utcp.c +++ b/src/utcp.c @@ -423,7 +423,6 @@ static int compare(const void *va, const void *vb) { const struct utcp_connection *b = *(struct utcp_connection **)vb; assert(a && b); - assert(a->src && b->src); int c = (int)a->src - (int)b->src;