ipv4: fix a bug in ping_err() from https://github.com/faux123/tuna/commit/b18383129b00d2d6aac160f55e27c5ba1cf9d49b