I'm reviewing the patch, @cmaruti at the moment I think you're patching because on IBM WebSphere 6.1 flag_found_one or flag_found_two can be zero? Is it right? (I think flag_found_one because of your testing screenshot on the pull request)

Trying to put an IBM Websphere 6.1 trial running in order to test.