Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd Make sure bozo_auth_check_401() isn't called w...



details:   https://anonhg.NetBSD.org/src/rev/7a0e17a737b7
branches:  trunk
changeset: 760755:7a0e17a737b7
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jan 12 19:29:24 2011 +0000

description:
Make sure bozo_auth_check_401() isn't called with a NULL "request".

reviewed by mrg

diffstat:

 libexec/httpd/bozohttpd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 802edb8f3850 -r 7a0e17a737b7 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Wed Jan 12 19:04:19 2011 +0000
+++ b/libexec/httpd/bozohttpd.c Wed Jan 12 19:29:24 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bozohttpd.c,v 1.25 2010/09/20 23:11:38 mrg Exp $       */
+/*     $NetBSD: bozohttpd.c,v 1.26 2011/01/12 19:29:24 pooka Exp $     */
 
 /*     $eterna: bozohttpd.c,v 1.176 2010/09/20 22:26:28 mrg Exp $      */
 
@@ -1728,7 +1728,8 @@
                size = 0;
 
        bozo_printf(httpd, "%s %s\r\n", proto, header);
-       bozo_auth_check_401(request, code);
+       if (request)
+               bozo_auth_check_401(request, code);
 
        bozo_printf(httpd, "Content-Type: text/html\r\n");
        bozo_printf(httpd, "Content-Length: %d\r\n", size);



Home | Main Index | Thread Index | Old Index