]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
A missing "else" in dhcrelay.c could have caused an interface not to
authorEvan Hunt <each@isc.org>
Wed, 12 Nov 2008 23:22:14 +0000 (23:22 +0000)
committerEvan Hunt <each@isc.org>
Wed, 12 Nov 2008 23:22:14 +0000 (23:22 +0000)
be recognized. [rt18887]

RELNOTES
relay/dhcrelay.c

index 8687f4d32407115217ad1f83a42bf64c6794f6de..a5be624a78dbfe48ecaab853f92d3cdaeb3d352f 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -47,6 +47,10 @@ The system has only been tested on Linux, FreeBSD, and Solaris, and may not
 work on other platforms. Please report any problems and suggested fixes to
 <dhcp-users@isc.org>.
 
+                        Changes since 4.1.0b1
+
+- A missing "else" in dhcrelay.c could have caused an interface not to
+  be recognized.
 
                        Changes since 4.1.0a2
 
index 45a6ceafcf402a01ab41b71cfb05ba31aec1cad0..93bfb4ed516785f3d93437f898ecffc4567ca124 100644 (file)
@@ -1384,7 +1384,7 @@ process_up6(struct packet *packet, struct stream_list *dp) {
 
                if (dp) {
                        if_id = dp->id;
-               } if (!downstreams->next) {
+               } else if (!downstreams->next) {
                        if_id = downstreams->id;
                } else {
                        log_info("Don't know the interface.");