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:
harti 2003-07-18 11:17:04 +00:00
parent 6fd98eaab7
commit b16884f98f

View File

@ -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;