about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-08-04 06:25:42 +0000
committerUlrich Drepper <drepper@redhat.com>2004-08-04 06:25:42 +0000
commit0532e21bad5e3f64018029e3505545aebf8c072a (patch)
treef8fa1dd773765ceea40259501e28bc091cef6cb4
parent5d32be9a0a5489d9274de87b3657b1e16e27ef3f (diff)
downloadglibc-0532e21bad5e3f64018029e3505545aebf8c072a.tar.gz
glibc-0532e21bad5e3f64018029e3505545aebf8c072a.tar.xz
glibc-0532e21bad5e3f64018029e3505545aebf8c072a.zip
Update.
2004-08-03  Ulrich Drepper  <drepper@redhat.com>

	* nscd/connections.c (handle_request): Print more descriptive
	message for invalid request types.
-rw-r--r--ChangeLog5
-rw-r--r--nscd/connections.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3edfb3a12f..5838fd380d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-03  Ulrich Drepper  <drepper@redhat.com>
+
+	* nscd/connections.c (handle_request): Print more descriptive
+	message for invalid request types.
+
 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
 
 	* iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
diff --git a/nscd/connections.c b/nscd/connections.c
index 82f89c85e7..d9a3109d41 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -342,8 +342,10 @@ cannot handle old request version %d; current version is %d"),
     {
       if (req->type == INVALIDATE)
 	dbg_log ("\t%s (%s)", serv2str[req->type], (char *)key);
-      else
+      else if (req > LASTDBREQ && req < LASTREQ)
 	dbg_log ("\t%s", serv2str[req->type]);
+      else
+	dbg_log ("\tinvalid request type %d", req->type);
     }
 
   /* Handle the request.  */