Index: /trunk/docs/Changelog
===================================================================
--- /trunk/docs/Changelog	(revision 193)
+++ /trunk/docs/Changelog	(revision 194)
@@ -1,3 +1,5 @@
 2.5.1:
+	* fix for config reload issue with stealth mode (reported by
+	  siim)
 	* add -fstack-protector flags to LDFLAGS
 	* cygwin fix: don't use dnmalloc, doesn't work with pthreads
Index: /trunk/src/sh_readconf.c
===================================================================
--- /trunk/src/sh_readconf.c	(revision 193)
+++ /trunk/src/sh_readconf.c	(revision 194)
@@ -261,4 +261,7 @@
      */
   fdTmp = open_tmp(); 
+
+  sh_unix_getline_stealth (0, NULL, 0); /* initialize */
+
   while ( sh_unix_getline_stealth (fd, line_in, 512) > 0) {
     hidden_count++;
Index: /trunk/src/sh_unix.c
===================================================================
--- /trunk/src/sh_unix.c	(revision 193)
+++ /trunk/src/sh_unix.c	(revision 194)
@@ -4676,4 +4676,12 @@
   SL_ENTER(_("sh_unix_getline_stealth"));
 
+  if (str == NULL)
+    {
+      off_data   = 0;
+      max_data   = 0;
+      bytes_read = 0;
+      stealth_init = BAD;
+      SL_RETURN(0, _("sh_unix_getline_stealth"));
+    }
 
   /* --- Initialize. ---
