diff options
-rw-r--r-- | sys/net/if_ppp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 82c5c1e..7557844 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1611,14 +1611,14 @@ pppdumpm(m0) u_char *rptr = (u_char *)m->m_data; while (l--) { - if (bp > buf + sizeof(buf) - 4) + if (bp > buf + (sizeof(buf) - 4)) goto done; *bp++ = hex2ascii(*rptr >> 4); *bp++ = hex2ascii(*rptr++ & 0xf); } if (m->m_next) { - if (bp > buf + sizeof(buf) - 3) + if (bp > buf + (sizeof(buf) - 3)) goto done; *bp++ = '|'; } else |