]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Fix Expression '!iface' is always true 219/head
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Sun, 15 Jan 2017 21:14:27 +0000 (22:14 +0100)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Sun, 15 Jan 2017 21:15:12 +0000 (22:15 +0100)
src/client/commands.c

index 7fd4d55a2e66f1a8178fa0df53c1b4bed0e2378a..beedbf1a96faa48ff154f3dac865d673d83dc27c 100644 (file)
@@ -753,7 +753,7 @@ cmd_iterate_on_ports(struct lldpctl_conn_t *conn, struct cmd_env *env, const cha
                        last_port = lldpctl_get_port(iface);
                        return last_port;
                }
-               if (!iface && !interfaces) {
+               if (!interfaces) {
                        put_default = 1;
                        *name = "(default)";
                        last_port = lldpctl_get_default_port(conn);