libhfnetdriver: don't make files_sendToSocket fatal
@@ -288,7 +288,9 @@ __attribute__((weak)) int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
LOG_F("Couldn't connect to the server TCP port");
}
if (!files_sendToSocket(sock, buf, len)) {
- LOG_F("files_sendToSocket(sock=%d, len=%zu) failed", sock, len);
+ PLOG_E("files_sendToSocket(sock=%d, len=%zu) failed", sock, len);
+ close(sock);
+ return 0;
}
/*
* Indicate EOF (via the FIN flag) to the TCP server
