mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
Merge pull request #1680 from donaldsharp/inet_pton
zebra: Fix failure to parse src
This commit is contained in:
commit
ec0ffe4878
@ -1193,7 +1193,7 @@ static void *route_set_src_compile(const char *arg)
|
||||
union g_addr src, *psrc;
|
||||
|
||||
if ((inet_pton(AF_INET6, arg, &src.ipv6) == 1)
|
||||
|| (src.ipv4.s_addr && (inet_pton(AF_INET, arg, &src.ipv4) == 1))) {
|
||||
|| (inet_pton(AF_INET, arg, &src.ipv4) == 1)) {
|
||||
psrc = XMALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(union g_addr));
|
||||
*psrc = src;
|
||||
return psrc;
|
||||
|
Loading…
Reference in New Issue
Block a user