Index: trunk/configure.ac
===================================================================
--- trunk/configure.ac	(revision 292)
+++ trunk/configure.ac	(revision 293)
@@ -12,5 +12,5 @@
 dnl start
 dnl
-AM_INIT_AUTOMAKE(samhain, 2.7.2b)
+AM_INIT_AUTOMAKE(samhain, 2.7.2c)
 AC_DEFINE([SAMHAIN], 1, [Application is samhain])
 AC_CANONICAL_HOST
Index: trunk/docs/Changelog
===================================================================
--- trunk/docs/Changelog	(revision 292)
+++ trunk/docs/Changelog	(revision 293)
@@ -1,2 +1,5 @@
+2.7.2c:
+	* Fix uppercase hostname problem in client/server communication
+
 2.7.2b:
 	* Fix compile errors on Solaris 10 (reported by A. Saheba)
Index: trunk/src/sh_unix.c
===================================================================
--- trunk/src/sh_unix.c	(revision 292)
+++ trunk/src/sh_unix.c	(revision 293)
@@ -1559,4 +1559,18 @@
 /* Get the local hostname (FQDN)
  */
+static char * sh_tolower (char * s)
+{
+  char * ret = s;
+  if (s)
+    {
+      for (; *s; ++s)
+	{ 
+	  *s = tolower((unsigned char) *s);
+	}
+    }
+  return ret;
+}
+
+
 #include <sys/socket.h> 
 
@@ -1648,4 +1662,5 @@
     {
       sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF);
+      sh_tolower (sh.host.name);
     }
   SH_MUTEX_UNLOCK(mutex_resolv);
@@ -1657,4 +1672,5 @@
 	   hostname);
       sl_strlcpy (sh.host.name, hostname,    SH_PATHBUF);
+      sh_tolower (sh.host.name);
     }
   
@@ -1727,4 +1743,5 @@
     {
       sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF);
+      sh_tolower (sh.host.name);
     }
   SH_MUTEX_UNLOCK(mutex_resolv);
Index: trunk/src/sh_utils.c
===================================================================
--- trunk/src/sh_utils.c	(revision 292)
+++ trunk/src/sh_utils.c	(revision 293)
@@ -796,4 +796,5 @@
   SL_RETURN( 0, _("sh_util_sigtype"));
 }
+
 
 char * sh_util_siggen (char * hexkey,  
