udp: drop bogus udp_tap_map ts assignment
The 'ts' field is a timestamp so assigning the socket file descriptor is incorrect. There is no actual bug because the current time is assigned just a few lines later: udp_tap_map[V4][src].sock = s; udp_tap_map[V4][src].ts = s; ^^^^^^^^^^^ bogus ^^^^^^^^^^ bitmap_set(udp_act[V4][UDP_ACT_TAP], src); } udp_tap_map[V4][src].ts = now->tv_sec; ^^^^^^^^^^^^^^^ correct ^^^^^^^^^^^^^^ Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
6231422dfb
commit
14fe73e766
1 changed files with 0 additions and 1 deletions
1
udp.c
1
udp.c
|
@ -927,7 +927,6 @@ int udp_tap_handler(struct ctx *c, int af, void *addr,
|
|||
return count;
|
||||
|
||||
udp_tap_map[V4][src].sock = s;
|
||||
udp_tap_map[V4][src].ts = s;
|
||||
bitmap_set(udp_act[V4][UDP_ACT_TAP], src);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue