diff options
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/accf_dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/accf_dns.c b/sys/netinet/accf_dns.c index 1db9076..8789906 100644 --- a/sys/netinet/accf_dns.c +++ b/sys/netinet/accf_dns.c @@ -78,7 +78,7 @@ sohasdns(struct socket *so, void *arg, int waitflag) if (sb->sb_cc >= sb->sb_hiwat || sb->sb_mbcnt >= sb->sb_mbmax) goto ready; - /* Check and see if we have a request. */ + /* Check to see if we have a request. */ if (skippacket(sb) == DNS_WAIT) return; @@ -128,7 +128,7 @@ skippacket(struct sockbuf *sb) { q.len = sb->sb_cc; GET16(p, packlen); - if (packlen + 2 < q.len) + if (packlen + 2 > q.len) return DNS_WAIT; return DNS_OK; |