From: Ted Lemon Date: Wed, 26 Feb 1997 05:21:55 +0000 (+0000) Subject: Use medium passed to us, not necessarily the one attached to the client status structure. X-Git-Tag: DHCP_970225~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d13e8f28c07ad6d7f37215781119cc4164f9d42d;p=thirdparty%2Fdhcp.git Use medium passed to us, not necessarily the one attached to the client status structure. --- diff --git a/client/dhclient.c b/client/dhclient.c index 150547b8b..131d7f5ac 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -56,7 +56,7 @@ #ifndef lint static char copyright[] = -"$Id: dhclient.c,v 1.26 1997/02/22 12:24:28 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhclient.c,v 1.27 1997/02/26 05:21:55 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1507,8 +1507,7 @@ void script_init (ip, reason, medium) fprintf (scriptFile, "export interface\n"); } if (medium) { - fprintf (scriptFile, "medium=\"%s\"\n", - ip -> client -> medium -> string); + fprintf (scriptFile, "medium=\"%s\"\n", medium -> string); fprintf (scriptFile, "export medium\n"); } fprintf (scriptFile, "reason=\"%s\"\n", reason);