set the state field, not unused local

Signed-off-by: Dave Brosius <dbrosius@mebigfatguy.com>