Check strtok_r return value

Had a PF right after strtok_r when the TCP stream may have been
corrupted.