From 939327b9b532a5e885aacb74bed78b82d137553c Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Wed, 22 May 1996 08:14:59 +0000 Subject: Don't print interface network name if there's no network structure --- bpf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bpf.c') diff --git a/bpf.c b/bpf.c index 7e3f6610..dd773f38 100644 --- a/bpf.c +++ b/bpf.c @@ -115,7 +115,8 @@ void if_register_send (info, interface) print_hw_addr (info -> hw_address.htype, info -> hw_address.hlen, info -> hw_address.haddr), - info -> shared_network -> name); + (info -> shared_network ? + info -> shared_network -> name : "unattached")); } #endif /* USE_BPF_SEND */ @@ -213,7 +214,8 @@ void if_register_receive (info, interface) print_hw_addr (info -> hw_address.htype, info -> hw_address.hlen, info -> hw_address.haddr), - info -> shared_network -> name); + (info -> shared_network ? + info -> shared_network -> name : "unattached")); } #endif /* USE_BPF_RECEIVE */ -- cgit v1.2.1