[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.31,1.32
Karl DeBisschop
kdebisschop at users.sourceforge.net
Tue Apr 22 21:59:06 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv19921/plugins
Modified Files:
check_http.c
Log Message:
update to RFC1123 hostname specs
Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** check_http.c 9 Apr 2003 03:46:25 -0000 1.31
--- check_http.c 23 Apr 2003 04:58:38 -0000 1.32
***************
*** 190,194 ****
enum {
! MAX_IPV4_HOSTLENGTH = 64,
HTTP_PORT = 80,
HTTPS_PORT = 443
--- 190,194 ----
enum {
! MAX_IPV4_HOSTLENGTH = 255,
HTTP_PORT = 80,
HTTPS_PORT = 443
***************
*** 738,742 ****
pos = header;
while (pos) {
! server_address = realloc (server_address, MAX_IPV4_HOSTLENGTH);
if (server_address == NULL)
terminate (STATE_UNKNOWN,
--- 738,742 ----
pos = header;
while (pos) {
! server_address = realloc (server_address, MAX_IPV4_HOSTLENGTH + 1);
if (server_address == NULL)
terminate (STATE_UNKNOWN,
More information about the Commits
mailing list