exit_server("pthreadpool_tevent_init() failed.");
}
+#if defined(WITH_SMB1SERVER)
if (lp_server_max_protocol() >= PROTOCOL_SMB2_02) {
+#endif
/*
* We're not making the decision here,
* we're just allowing the client
* packet.
*/
sconn->using_smb2 = true;
+#if defined(WITH_SMB1SERVER)
}
+#endif
if (!interactive) {
smbd_setup_sig_term_handler(sconn);
messaging_register(sconn->msg_ctx, NULL,
MSG_DEBUG, debug_message);
+#if defined(WITH_SMB1SERVER)
if ((lp_keepalive() != 0)
&& !(event_add_idle(ev_ctx, NULL,
timeval_set(lp_keepalive(), 0),
DEBUG(0, ("Could not add keepalive event\n"));
exit(1);
}
+#endif
if (!(event_add_idle(ev_ctx, NULL,
timeval_set(IDLE_CLOSED_TIMEOUT, 0),