Don't try to send something without path
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
2
mud.c
2
mud.c
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user