diff --git a/dcerpc/transport.go b/dcerpc/transport.go index 53babd41..a3094c38 100644 --- a/dcerpc/transport.go +++ b/dcerpc/transport.go @@ -119,7 +119,11 @@ func (t *transport) makeCall(ctx context.Context, opts ...any) (Call, error) { } if t.IsBinded() { - t.txQ <- call + select { + case t.txQ <- call: + case <-ctx.Done(): + return nil, ctx.Err() + } } return call, nil