diff options
author | Ted Lemon <source@isc.org> | 1996-05-22 08:14:59 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1996-05-22 08:14:59 +0000 |
commit | 939327b9b532a5e885aacb74bed78b82d137553c (patch) | |
tree | 523c2ac7f88f3550a3232250915c6546db91b911 /common/nit.c | |
parent | f4e348de94aadd1868e665692c337750a96d237a (diff) | |
download | isc-dhcp-939327b9b532a5e885aacb74bed78b82d137553c.tar.gz |
Don't print interface network name if there's no network structure
Diffstat (limited to 'common/nit.c')
-rw-r--r-- | common/nit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/nit.c b/common/nit.c index a237a81b..7937b60a 100644 --- a/common/nit.c +++ b/common/nit.c @@ -137,7 +137,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_NIT_SEND */ @@ -222,7 +223,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_NIT_RECEIVE */ |