mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't call print_pdu() when we are not debugging. This would result
in calling fprintf() with a NULL fp. Strange enough this didn't result in cores in stable, but results in cores now. MFC after: 2 weeks
This commit is contained in:
parent
d3dd89ab11
commit
a0f1a723a2
1 changed files with 2 additions and 1 deletions
|
|
@ -2475,7 +2475,8 @@ ilmi_do_state(void)
|
|||
bpp = (caddr_t)&buf[1];
|
||||
Hdr = asn_get_header(&bpp);
|
||||
|
||||
print_pdu(PDU_RECV, intf, Hdr, n, buf);
|
||||
if ( Log && Debug_Level > 1 )
|
||||
print_pdu(PDU_RECV, intf, Hdr, n, buf);
|
||||
|
||||
if (Hdr == NULL)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue