]> git.meshlink.io Git - utcp/commitdiff
Don't abort when UTCP_NO_PARTIAL is set.
authorGuus Sliepen <guus@sliepen.org>
Tue, 13 Aug 2019 18:45:34 +0000 (20:45 +0200)
committerGuus Sliepen <guus@sliepen.org>
Tue, 13 Aug 2019 18:45:34 +0000 (20:45 +0200)
utcp.c

diff --git a/utcp.c b/utcp.c
index 5938ea5bcea6af1a99b9d2e885b8fd68bdf70435..3a299476616f08674a26aaa703a1f0754b94b968 100644 (file)
--- a/utcp.c
+++ b/utcp.c
@@ -453,7 +453,7 @@ struct utcp_connection *utcp_connect_ex(struct utcp *utcp, uint16_t dst, utcp_re
                return NULL;
        }
 
-       assert((flags & ~0xf) == 0);
+       assert((flags & ~0x1f) == 0);
 
        c->flags = flags;
        c->recv = recv;