Commit 273b35d6 authored by Mike Hibler's avatar Mike Hibler

Watch out for unparseable (non-ascii) packet.

parent 227ea88b
......@@ -274,6 +274,11 @@ int ParseRecord(IDLE_DATA *iddata) {
/* Parse out fields */
itemptr = strtok(iddata->buf, " \t");
if (itemptr == NULL) {
error("No valid data; rejecting.");
return 0;
}
do {
if (strstr(itemptr, "vers")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment