contiv / libOpenflow

Apache License 2.0
21 stars 45 forks source link

Bugfix: Return a new MatchField copied from the field header map #10

Closed wenyingd closed 4 years ago

wenyingd commented 4 years ago

Copy a new MatchField object from the object in the appropriate map, and return then it in function FindFieldHeaderByName. Otherwise, all goroutines are sharing the same MatchField object, and it could cause a race conditions.

Signed-off-by: wenyingd wenyingd@vmware.com

wenyingd commented 4 years ago

Hi @jojimt , could you help review this PR?