]> git.meshlink.io Git - meshlink/commitdiff
Don't crash when trying to connect a channel to port 0.
authorGuus Sliepen <guus@meshlink.io>
Wed, 3 Jun 2020 19:19:09 +0000 (21:19 +0200)
committerGuus Sliepen <guus@meshlink.io>
Wed, 3 Jun 2020 19:19:09 +0000 (21:19 +0200)
src/utcp.c

index f81150bf7ee7ec06a1aa9d0e88c2ab5751eb743a..ec74923dd128a85c4b730fefa015127e40a40c8a 100644 (file)
@@ -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;