dougm 01/06/13 22:26:29
Modified: . Changes
src/modules/perl Apache.xs
Log:
croak if the filehandle passed to $r->send_fd is NULL
Revision Changes Path
1.598 +3 -0 modperl/Changes
Index: Changes
===================================================================
RCS file: /home/cvs/modperl/Changes,v
retrieving revision 1.597
retrieving revision 1.598
diff -u -r1.597 -r1.598
--- Changes 2001/06/14 04:49:07 1.597
+++ Changes 2001/06/14 05:26:27 1.598
@@ -10,6 +10,9 @@
=item 1.25_01-dev
+croak if the filehandle passed to $r->send_fd is NULL, otherwise
+apache will segfault
+
if PREFIX is given to Makefile.PL add it to @INC at startup
[Philippe M . Chiasson <[EMAIL PROTECTED]>]
1.123 +4 -0 modperl/src/modules/perl/Apache.xs
Index: Apache.xs
===================================================================
RCS file: /home/cvs/modperl/src/modules/perl/Apache.xs,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -r1.122 -r1.123
--- Apache.xs 2001/06/14 04:36:21 1.122
+++ Apache.xs 2001/06/14 05:26:28 1.123
@@ -956,6 +956,10 @@
long length
CODE:
+ if (!f) {
+ croak("send_fd: NULL filehandle "
+ "(hint: did you check the return value of open?)");
+ }
RETVAL = send_fd_length(f, r, length);
OUTPUT: