Fix for Mail Crash

This commit is contained in:
Andrew Pamment 2016-03-31 20:47:52 +10:00
parent 1950a9f8c9
commit b1d0c15ff5

View File

@ -1211,17 +1211,18 @@ int mail_menu(int socket, struct user_record *user) {
read_message(socket, user, msghs, z);
}
}
}
}
if (closed == 0) {
JAM_CloseMB(jb);
}
if (msghs != NULL) {
free_message_headers(msghs);
}
} else {
s_putstring(socket, "\r\nThere is no mail in this area\r\n");
}
}
if (closed == 0) {
JAM_CloseMB(jb);
}
if (msghs != NULL) {
free_message_headers(msghs);
}
break;
case 'c':
{