Skip to content

Commit

Permalink
fix: use new buf for each received msg
Browse files Browse the repository at this point in the history
  • Loading branch information
free5gc-org committed Jun 29, 2022
1 parent 77c2f95 commit 4972fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pfcp/pfcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ func (s *PfcpServer) receiver(wg *sync.WaitGroup) {
wg.Done()
}()

buf := make([]byte, MAX_PFCP_MSG_LEN)
for {
buf := make([]byte, MAX_PFCP_MSG_LEN)
n, addr, err := s.conn.ReadFrom(buf)
if err != nil {
s.log.Errorf("%+v", err)
Expand Down

0 comments on commit 4972fff

Please sign in to comment.