2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

Use medium passed to us, not necessarily the one attached to the client status structure.

This commit is contained in:
Ted Lemon 1997-02-26 05:21:55 +00:00
parent 8d929f2fa2
commit d13e8f28c0

View File

@ -56,7 +56,7 @@
#ifndef lint #ifndef lint
static char copyright[] = 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 */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@ -1507,8 +1507,7 @@ void script_init (ip, reason, medium)
fprintf (scriptFile, "export interface\n"); fprintf (scriptFile, "export interface\n");
} }
if (medium) { if (medium) {
fprintf (scriptFile, "medium=\"%s\"\n", fprintf (scriptFile, "medium=\"%s\"\n", medium -> string);
ip -> client -> medium -> string);
fprintf (scriptFile, "export medium\n"); fprintf (scriptFile, "export medium\n");
} }
fprintf (scriptFile, "reason=\"%s\"\n", reason); fprintf (scriptFile, "reason=\"%s\"\n", reason);