- if (isdigit(buf[0]))
- { /* we're done, this is the last response line from the scanner */
- DEBUG(D_acl) debug_printf_indent("sent to avast QUIT\n");
- if (send(sock, "QUIT\n", 5, 0) == -1) /* courtesy */
- return m_panic_defer_3(scanent, CUS callout_address,
- string_sprintf(
- "unable to send quit request to socket (%s): %s",
- scanner_options, strerror(errno)),
- sock);
-
- if (buf[0] != '2') error_message = buf;
- avast_stage = AVA_DONE;