hdt: Fix NULL dereference in core
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Wed, 25 Mar 2009 05:23:46 +0000 (22:23 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Wed, 25 Mar 2009 05:23:46 +0000 (22:23 -0700)
commite3161f91283dcdd1486c1e22523e2fbb7259f76a
treee03c31fecde6c76f712642158481af2f695c3009
parent8bcaa0c3871d2caadbe4c6417270b27f5c36d528
hdt: Fix NULL dereference in core

Impact: Bug fixing; add debug info

There was a NULL dereference in the CLI core for modes that doesn't
implement a set of modules (show, set, ...).

Also, check the command name on the `command' variable, not the raw line.

Misc.: add debug info.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/hdt/hdt-cli.c