patch-2.4.20 linux-2.4.20/net/khttpd/waitheaders.c

Next file: linux-2.4.20/net/netlink/af_netlink.c
Previous file: linux-2.4.20/net/khttpd/sysctl.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/net/khttpd/waitheaders.c linux-2.4.20/net/khttpd/waitheaders.c
@@ -134,7 +134,7 @@
 		CurrentRequest = CurrentRequest->Next;
 	}
 
-	LeaveFunction("WaitHeaders");
+	LeaveFunction("WaitForHeaders");
 	return count;
 }
 
@@ -178,6 +178,12 @@
 	
 	EnterFunction("DecodeHeader");
 	
+	if (Buffer[CPUNR] == NULL) {
+		/* see comments in main.c regarding buffer managemnet - dank */
+		printk(KERN_CRIT "khttpd: lost my buffer");
+		BUG();
+	}
+
 	/* First, read the data */
 
 	msg.msg_name     = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)