Skip to content

Commit

Permalink
Fix race condition in 33across.go (prebid#1757)
Browse files Browse the repository at this point in the history
Co-authored-by: Gus Carreon <gcarreongutierrez@vpn-10-75-11-243.nym2.appnexus.com>
  • Loading branch information
2 people authored and Dan Barnett committed May 11, 2021
1 parent f742272 commit c57ec89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/33across/33across.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (a *TtxAdapter) MakeBids(internalRequest *openrtb.BidRequest, externalReque
}

func validateVideoParams(video *openrtb.Video, prod string) (*openrtb.Video, error) {
videoCopy := video
videoCopy := *video
if videoCopy.W == 0 ||
videoCopy.H == 0 ||
videoCopy.Protocols == nil ||
Expand All @@ -252,7 +252,7 @@ func validateVideoParams(video *openrtb.Video, prod string) (*openrtb.Video, err
}
}

return videoCopy, nil
return &videoCopy, nil
}

func getBidType(ext bidExt) openrtb_ext.BidType {
Expand Down

0 comments on commit c57ec89

Please sign in to comment.