]> git.meshlink.io Git - utcp/blobdiff - utcp.c
Add more debug messages.
[utcp] / utcp.c
diff --git a/utcp.c b/utcp.c
index 026fb31bf340f74db204ab1f68ad6cfe27c4977c..9bae7b9f87b10b81fee0e700e48c40b462043dae 100644 (file)
--- a/utcp.c
+++ b/utcp.c
@@ -857,8 +857,10 @@ ssize_t utcp_recv(struct utcp *utcp, const void *data, size_t len) {
        // In case this is for a CLOSED connection, ignore the packet.
        // TODO: make it so incoming packets can never match a CLOSED connection.
 
-       if(c->state == CLOSED)
+       if(c->state == CLOSED) {
+               debug("Got packet for closed connection\n");
                return 0;
+       }
 
        // It is for an existing connection.