From 09163dc60143ae8427d25fb8e9863adba986bb72 Mon Sep 17 00:00:00 2001 From: Guilherme Guiguer Menaldo Date: Thu, 28 Dec 2017 17:27:00 -0200 Subject: Added an extra check --- src/map/intif.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/map/intif.c b/src/map/intif.c index 338e3a1ea..be6b75d96 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -2447,6 +2447,11 @@ void intif_parse_RequestRodexOpenInbox(int fd) if (sd == NULL) // user is not online anymore return; + if (is_first == false && sd->rodex.total == 0) { + ShowError("intif_parse_RodexInboxOpenReceived: mail list received in wrong order.\n"); + return; + } + if (is_first) sd->rodex.total = count; else -- cgit v1.2.3-70-g09d2