diff options
| author | Shulhan <ms@kilabit.info> | 2021-08-06 18:19:56 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-08-06 18:19:56 +0700 |
| commit | 589c7517d00bebe3beeb614f6bd166b0b44317e2 (patch) | |
| tree | a6216566a306369d896cae037e9e4a53e0182336 /lib/ssh/sftp | |
| parent | 2e41c999ec08bbf01751614e4f93085e6656e6b4 (diff) | |
| download | pakakeh.go-589c7517d00bebe3beeb614f6bd166b0b44317e2.tar.xz | |
ssh/sftp: fix linter warnings
Comment out unhandled packet types, the Extended and ExtendedReply.
Diffstat (limited to 'lib/ssh/sftp')
| -rw-r--r-- | lib/ssh/sftp/packet.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ssh/sftp/packet.go b/lib/ssh/sftp/packet.go index 99299e0e..032b77e8 100644 --- a/lib/ssh/sftp/packet.go +++ b/lib/ssh/sftp/packet.go @@ -39,10 +39,12 @@ const ( packetKindFxpName packetKindFxpAttrs ) -const ( - packetKindFxpExtended = 200 + iota - packetKindFxpExtendedReply -) + +// TODO(ms): handle extended reply. +// const ( +// packetKindFxpExtended = 200 + iota +// packetKindFxpExtendedReply +// ) type packet struct { length uint32 @@ -122,7 +124,6 @@ func unpackPacket(payload []byte) (pac *packet, err error) { v = binary.BigEndian.Uint32(payload) payload = payload[4:] pac.data = payload[:v] - payload = payload[v:] case packetKindFxpName: var ( |
