From d13e8f28c07ad6d7f37215781119cc4164f9d42d Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Wed, 26 Feb 1997 05:21:55 +0000 Subject: [PATCH] Use medium passed to us, not necessarily the one attached to the client status structure. --- client/dhclient.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/dhclient.c b/client/dhclient.c index 150547b8..131d7f5a 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);