Skip to content
Snippets Groups Projects
Commit c0c60161 authored by rswindell's avatar rswindell
Browse files

Don't require that the last character of the "DateTime" field of packed

messages is a null (0x00) byte. Some broken FidoNet software may include
a full 20 usable characters in their DateTime header field, like so:
"04 Feb 119  20:26:32" - representing February 4th, 2019.  Y2K. <sigh>

The DateTime won't be parsed fully correct, but at least the packet won't be
rejected outright because it is "Grunged". - for Alterego (ALTERANT)
parent b13983ec
No related branches found
No related tags found
No related merge requests found
......@@ -5694,7 +5694,7 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure)
if(pkdmsg.type == 2 /* Recognized type */
&& pkdmsg.time[0] != 0
&& pkdmsg.time[sizeof(pkdmsg.time)-1] == 0
// && pkdmsg.time[sizeof(pkdmsg.time)-1] == 0
&& freadstr(fidomsg, hdr.to, sizeof(hdr.to)) != NULL
&& freadstr(fidomsg, hdr.from, sizeof(hdr.from)) != NULL
&& freadstr(fidomsg, hdr.subj, sizeof(hdr.subj)) != NULL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment