Patches for check_by_ssh memory corruption fix [sf#673863] [#185]