Permalink
Browse files

Added fix for 'ip route get'

  • Loading branch information...
1 parent 4c15849 commit 4d3ad086f463349dda2daa46a58c043ecdf3df35 @saleyn committed Jul 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mreceive.c
View
@@ -590,7 +590,7 @@ void main(int argc, char *argv[])
if ((sscanf(obuf, "multicast %16s via %16s dev %16s src %16s ",
mc, via, addrs[i].iface_name, src) != 4) &&
(sscanf(obuf, "multicast %16s dev %16s src %16s ",
- mc, addrs[i].iface_name, src) != 4)) {
+ mc, addrs[i].iface_name, src) != 3)) {
fprintf(stderr, "Couldn't parse output of 'ip route get: %s'\n", obuf);
exit(2);
}

0 comments on commit 4d3ad08

Please sign in to comment.