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
6fd98eaab7
commit
b16884f98f
@ -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 New Issue
Block a user