dhcp_server_handle_message: don't pretend there was a difference between return code...
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2018 19:29:43 +0000 (20:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2018 19:29:43 +0000 (20:29 +0100)
We ignore the difference anyway, hence let's systematically return 0.

src/libsystemd-network/sd-dhcp-server.c

index a1b51f1..1a15d77 100644 (file)
@@ -942,12 +942,10 @@ int dhcp_server_handle_message(sd_dhcp_server *server, DHCPMessage *message,
                         server->bound_leases[pool_offset] = NULL;
                         hashmap_remove(server->leases_by_client_id, existing_lease);
                         dhcp_lease_free(existing_lease);
+                }
 
-                        return 1;
-                } else
-                        return 0;
-        }
-        }
+                return 0;
+        }}
 
         return 0;
 }