Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
{
struct smbd_server_connection *sconn = talloc_get_type_abort(
private_data, struct smbd_server_connection);
- struct smbXsrv_connection *xconn = sconn->conn;
+ struct smbXsrv_connection *xconn = NULL;
bool ret;
if (sconn->using_smb2) {
return false;
}
+ /*
+ * With SMB1 we only have 1 connection
+ */
+ xconn = sconn->client->connections;
smbd_lock_socket(xconn);
ret = send_keepalive(xconn->transport.sock);
smbd_unlock_socket(xconn);