Module Name: src Committed By: pooka Date: Wed Jan 12 19:29:24 UTC 2011
Modified Files: src/libexec/httpd: bozohttpd.c Log Message: Make sure bozo_auth_check_401() isn't called with a NULL "request". reviewed by mrg To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/libexec/httpd/bozohttpd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/libexec/httpd/bozohttpd.c diff -u src/libexec/httpd/bozohttpd.c:1.25 src/libexec/httpd/bozohttpd.c:1.26 --- src/libexec/httpd/bozohttpd.c:1.25 Mon Sep 20 23:11:38 2010 +++ src/libexec/httpd/bozohttpd.c Wed Jan 12 19:29:24 2011 @@ -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);