nagios-plugins/nagios-plugins — pull request #1159 by awiddersheim (2013-09-26 14:37:23+00:00)
Title: Die on SSL initialization errors

Fixes issue where if an SSL initialization error occurs on a redirect using -f follow the plugin still returns an OK state.

It is okay to return the CRITICAL state back to main() but redir() does not account for any returned results and you end up with messages similar to the following and the plugin exiting in an OK state:

CRITICAL - Cannot make SSL connection. HTTP OK: HTTP/1.1 301 Moved Permanently

This was seen on the latest 1.4.16 release of the plugins. Interestingly trying to replicate the same issue on the 1.4.12 release of the plugins and the result is as follows with the check exiting in a CRITICAL state:

CRITICAL - Cannot make SSL connection. HTTP CRITICAL - Error on receive