summaryrefslogtreecommitdiffstats
path: root/sbin/atm/ilmid
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-18 11:17:04 +0000
committerharti <harti@FreeBSD.org>2003-07-18 11:17:04 +0000
commitb16884f98f3a2fec283c97fc3a5475e3a740643a (patch)
tree90cc55283aba272dfdbaef5451f07697379a6803 /sbin/atm/ilmid
parent6fd98eaab7dbec310ee4eb31ef2d2d7291d01613 (diff)
downloadFreeBSD-src-b16884f98f3a2fec283c97fc3a5475e3a740643a.zip
FreeBSD-src-b16884f98f3a2fec283c97fc3a5475e3a740643a.tar.gz
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
Diffstat (limited to 'sbin/atm/ilmid')
-rw-r--r--sbin/atm/ilmid/ilmid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/atm/ilmid/ilmid.c b/sbin/atm/ilmid/ilmid.c
index ba7f170..230b9c3 100644
--- a/sbin/atm/ilmid/ilmid.c
+++ b/sbin/atm/ilmid/ilmid.c
@@ -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;
OpenPOWER on IntegriCloud