char *my_yp_domain = NULL;
#endif
-bool already_got_session = false;
-
/*
* Size of data we can send to client. Set
* by the client for all protocols above CORE.
extern char *my_yp_domain;
#endif
-extern bool already_got_session;
-
/*
* Size of data we can send to client. Set
* by the client for all protocols above CORE.
struct pending_auth_data;
struct smbd_server_connection {
+ struct {
+ bool got_session;
+ } nbt;
bool allow_smb2;
struct {
struct fd_event *fde;
#endif
+ smbd_server_conn->nbt.got_session = false;
+
smbd_server_conn->smb1.negprot.max_recv = MIN(lp_maxxmit(),BUFFER_SIZE);
smbd_server_conn->smb1.fde = event_add_fd(smbd_event_context(),
switch (msg_type) {
case 0x81: /* session request */
- if (already_got_session) {
+ if (sconn->nbt.got_session) {
exit_server_cleanly("multiple session request not permitted");
}
reload_services(True);
reopen_logs();
- already_got_session = True;
+ sconn->nbt.got_session = true;
break;
case 0x89: /* session keepalive request