From 6d5738b931398f251b7abbcc8401524cc2ad05e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 2 Apr 2018 08:50:42 +0000 Subject: [PATCH] Don't try to send something without path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mud.c b/mud.c index e5f40d9..7a62f2c 100644 --- a/mud.c +++ b/mud.c @@ -1394,7 +1394,7 @@ mud_send(struct mud *mud, const void *data, size_t size, int tc) mud_update(mud, now); - if (!size) + if (!size || !mud->count) return 0; if (size > sizeof(packet) - MUD_PACKET_MIN_SIZE) {