]> git.sur5r.net Git - openocd/commit
transport: fix segfault in setup_command_handler()
authorStacey Sheldon <stac@solidgoldbomb.org>
Sun, 4 Jul 2010 20:19:02 +0000 (16:19 -0400)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 5 Jul 2010 07:15:52 +0000 (09:15 +0200)
commit1e0f89841575de2b8b6313825ec8edd8bc7910a0
treeac8f249f9230edf7c9590a5a83de7c12c078b1ac
parentdb8b99aed6b4e6c046bf51853dacd8d511607984
transport: fix segfault in setup_command_handler()

Commit 93f2afa45f4c dropped the sentinel off the end
of the command_registrants[] array.  The loop immediately
following the initialization will walk right off the end.

Signed-off-by: Stacey Sheldon <stac@solidgoldbomb.org>
src/openocd.c