diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-11-18 15:08:30 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-11-18 16:25:09 +0100 |
commit | 3c609266f557177b34aa1db8cb8463bb00119d45 (patch) | |
tree | 55547dca151ed7304593aa1d122b3d122ea492d3 /bgpd/bgp_routemap.c | |
parent | lib: Fix Lua script unit test (diff) | |
download | frr-3c609266f557177b34aa1db8cb8463bb00119d45.tar.xz frr-3c609266f557177b34aa1db8cb8463bb00119d45.zip |
bgpd: Use int, not long long for route-map action in Lua script
This is an issue for big-endian architectures, that causes incorrect castings.
lua_tointegerp() uses int*, not long long*.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_routemap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 8666831c7..ce236f87b 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -457,8 +457,7 @@ route_match_script(void *rule, const struct prefix *prefix, void *object) return RMAP_NOMATCH; } - long long *action = frrscript_get_result(fs, routematch_function, - "action", lua_tointegerp); + int *action = frrscript_get_result(fs, routematch_function, "action", lua_tointegerp); int status = RMAP_NOMATCH; |