Code

`host_name' is a NULL pointer if the "-I" flag is used instead of "-H",
authorHolger Weiss <hweiss@users.sourceforge.net>
Fri, 15 Jun 2007 18:31:37 +0000 (18:31 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Fri, 15 Jun 2007 18:31:37 +0000 (18:31 +0000)
commit0dc4801791d956c3d4d2059b6fcdd249fe152df5
treed34ddfaa9c25500af400a8d37ca04786e89bccae
parent7c8db659a49d575b6d5b0304f5399c9b2931d83b
`host_name' is a NULL pointer if the "-I" flag is used instead of "-H",
so use `server_address' instead.  Fixes a possible segfault when
following redirects to relative URLs (reported by Ingo Lantschner).

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1740 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c