mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Minor fixes
This commit is contained in:
parent
85a3639d99
commit
6264aad16f
2
lib/ip.c
2
lib/ip.c
@ -246,7 +246,7 @@ ip4_pton(char *a, ip4_addr *o)
|
||||
if (!c != !i)
|
||||
return 0;
|
||||
l = strtoul(a, &d, 10);
|
||||
if (d != c && *d || l > 255)
|
||||
if (((d != c) && *d) || (l > 255))
|
||||
return 0;
|
||||
ia = (ia << 8) | l;
|
||||
if (c)
|
||||
|
@ -554,7 +554,7 @@ next:
|
||||
c = 1;
|
||||
debug("got %p\n", z);
|
||||
}
|
||||
FIB_ITERATE_END;
|
||||
FIB_ITERATE_END(z);
|
||||
dump("iter end");
|
||||
|
||||
fit_init(&i, &f);
|
||||
|
Loading…
Reference in New Issue
Block a user