Don't try to send something without path

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-04-02 08:50:42 +00:00
parent dcfaca04a5
commit 6d5738b931

2
mud.c
View File

@@ -1394,7 +1394,7 @@ mud_send(struct mud *mud, const void *data, size_t size, int tc)
mud_update(mud, now); mud_update(mud, now);
if (!size) if (!size || !mud->count)
return 0; return 0;
if (size > sizeof(packet) - MUD_PACKET_MIN_SIZE) { if (size > sizeof(packet) - MUD_PACKET_MIN_SIZE) {