summaryrefslogtreecommitdiff
path: root/common/raw.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-05-22 08:14:59 +0000
committerTed Lemon <source@isc.org>1996-05-22 08:14:59 +0000
commit939327b9b532a5e885aacb74bed78b82d137553c (patch)
tree523c2ac7f88f3550a3232250915c6546db91b911 /common/raw.c
parentf4e348de94aadd1868e665692c337750a96d237a (diff)
downloadisc-dhcp-939327b9b532a5e885aacb74bed78b82d137553c.tar.gz
Don't print interface network name if there's no network structure
Diffstat (limited to 'common/raw.c')
-rw-r--r--common/raw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/raw.c b/common/raw.c
index 39b4a93a..36a0d5e2 100644
--- a/common/raw.c
+++ b/common/raw.c
@@ -96,7 +96,9 @@ void if_register_send (info, interface)
info -> wfdesc = sock;
note ("Sending on Raw/%s/%s",
- info -> name, info -> shared_network -> name);
+ info -> name,
+ (info -> shared_network ?
+ info -> shared_network -> name : "unattached"));
}
size_t send_packet (interface, packet, raw, len, from, to, hto)