]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: fix "source unknown" for Dot3/LLDP-MED power.
authorVincent Bernat <bernat@luffy.cx>
Sun, 6 Jan 2013 12:34:36 +0000 (13:34 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 6 Jan 2013 12:34:36 +0000 (13:34 +0100)
src/client/actions.c

index 8b3331618684a1ff1d221578454db1a4ecb86ac6..f852390d522350ea7dc9d6803b1fd3340827bfea 100644 (file)
@@ -675,7 +675,7 @@ register_commands_pow_source(struct cmd_node *source)
 {
        commands_new(source,
            "unknown", "Unknown power source",
-           NULL, cmd_store_env_and_pop, "source");
+           NULL, cmd_store_env_value_and_pop2, "source");
        commands_new(source,
            "primary", "Primary power source",
            cmd_check_pse, cmd_store_env_value_and_pop2, "source");