View | Details | Raw Unified | Return to bug 27766
Collapse All | Expand All

(-)/usr/src/usr.sbin/ppp/ip.c (-2 / +5 lines)
Lines 452-457 Link Here
452
  const u_char *ptr;
452
  const u_char *ptr;
453
  u_short *hptr;
453
  u_short *hptr;
454
  int len;
454
  int len;
455
  u_short tmp;
455
456
456
  ptr = (const char *)uh + sizeof *uh;
457
  ptr = (const char *)uh + sizeof *uh;
457
  len = ntohs(uh->uh_ulen) - sizeof *uh;
458
  len = ntohs(uh->uh_ulen) - sizeof *uh;
Lines 489-496 Link Here
489
      n += len;
490
      n += len;
490
    }
491
    }
491
    *n = '\0';
492
    *n = '\0';
492
    qtype = dns_Qtype2Txt(ntohs(*(const u_short *)end));
493
    bcopy(end, &tmp, sizeof(tmp));
493
    qclass = dns_Qclass2Txt(ntohs(*(const u_short *)(end + 2)));
494
    qtype = dns_Qtype2Txt(ntohs(tmp));
495
    bcopy(end + 2, &tmp, sizeof(tmp));
496
    qclass = dns_Qclass2Txt(ntohs(tmp));
494
497
495
    log_Printf(LogDNS, "%sbound query %s %s %s\n",
498
    log_Printf(LogDNS, "%sbound query %s %s %s\n",
496
               direction, qclass, qtype, namewithdot);
499
               direction, qclass, qtype, namewithdot);

Return to bug 27766