]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Relay to server port, not client
authorTed Lemon <source@isc.org>
Wed, 5 Mar 1997 06:16:44 +0000 (06:16 +0000)
committerTed Lemon <source@isc.org>
Wed, 5 Mar 1997 06:16:44 +0000 (06:16 +0000)
relay/dhcrelay.c

index 6b7b965c3b8432ee461e04e5c084cf3b6ddc6367..c72191fea7e81f5529707f69c182a80fe6057512 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcrelay.c,v 1.3 1997/02/27 03:41:28 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcrelay.c,v 1.4 1997/03/05 06:16:44 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -149,7 +149,7 @@ int main (argc, argv, envp)
 
        /* Set up the server sockaddrs. */
        for (sp = servers; sp; sp = sp -> next) {
-               sp -> to.sin_port = remote_port;
+               sp -> to.sin_port = local_port;
                sp -> to.sin_family = AF_INET;
 #ifdef HAVE_SA_LEN
                sp -> to.sin_len = sizeof sp -> to;