about summary refs log tree commit diff
diff options
context:
space:
mode:
-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.  */