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:
Hartmut Brandt 2003-07-18 11:17:04 +00:00
parent d3dd89ab11
commit a0f1a723a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117726

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;