Skip to content

Commit

Permalink
sftpd: remove allocator
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
  • Loading branch information
drakkan committed Nov 21, 2024
1 parent 59833fb commit ed5ff9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/sftpd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ func (c *Configuration) handleSftpConnection(channel ssh.Channel, connection *Co
defer common.Connections.Remove(connection.GetID())

// Create the server instance for the channel using the handler we created above.
server := sftp.NewRequestServer(channel, c.createHandlers(connection), sftp.WithRSAllocator(),
server := sftp.NewRequestServer(channel, c.createHandlers(connection),
sftp.WithStartDirectory(connection.User.Filters.StartDirectory))

defer server.Close()
Expand Down
2 changes: 1 addition & 1 deletion internal/sftpd/subsystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func ServeSubSystemConnection(user *dataprovider.User, connectionID string, read
FilePut: connection,
FileCmd: connection,
FileList: connection,
}, sftp.WithRSAllocator())
})

defer server.Close()
return server.Serve()
Expand Down

0 comments on commit ed5ff9c

Please sign in to comment.