Commit Diff
- Commit:
bd8f9db2019dd7141a39f72b69474965b0d34c36
- From:
- Kenny Levinsen <w@kl.wtf>
- Date:
- Message:
- Remove tag defaulting in newFcall Defaulting the tag in newFcall might result in unexpected behaviour. For example, if a client (erroneously) sends a Tversion on a tag, the server response will not be on a tag. newFcall should just create the struct. Signed-off-by: Kenny Levinsen <w@kl.wtf>
- Actions:
- Patch | Tree
--- fcall.go +++ fcall.go @@ -111,11 +111,6 @@ type Fcall struct { } func newFcall(tag Tag, msg Message) *Fcall { - switch msg.Type() { - case Tversion, Rversion: - tag = NOTAG - } - return &Fcall{ Type: msg.Type(), Tag: tag,