diff options
author | Guilherme Guiguer Menaldo <guilherme.menaldo@outlook.com> | 2017-12-28 17:27:00 -0200 |
---|---|---|
committer | Guilherme Guiguer Menaldo <guilherme.menaldo@outlook.com> | 2017-12-28 17:27:00 -0200 |
commit | 09163dc60143ae8427d25fb8e9863adba986bb72 (patch) | |
tree | 4b282e202c5031c60c39025f5599c131ec040873 /src | |
parent | 101f3ab0d123733c12218e4cf4b87a2392d97001 (diff) | |
download | hercules-09163dc60143ae8427d25fb8e9863adba986bb72.tar.gz hercules-09163dc60143ae8427d25fb8e9863adba986bb72.tar.bz2 hercules-09163dc60143ae8427d25fb8e9863adba986bb72.tar.xz hercules-09163dc60143ae8427d25fb8e9863adba986bb72.zip |
Added an extra check
Diffstat (limited to 'src')
-rw-r--r-- | src/map/intif.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |