Module Name: src
Committed By: christos
Date: Fri Oct 30 23:45:31 UTC 2015
Modified Files:
src/libexec/httpd: bozohttpd.c
Log Message:
fix wrong variable
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 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.69 src/libexec/httpd/bozohttpd.c:1.70
--- src/libexec/httpd/bozohttpd.c:1.69 Fri Oct 30 19:27:47 2015
+++ src/libexec/httpd/bozohttpd.c Fri Oct 30 19:45:31 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.69 2015/10/30 23:27:47 christos Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.70 2015/10/30 23:45:31 christos Exp $ */
/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
@@ -1944,7 +1944,7 @@ bozo_http_error(bozohttpd_t *httpd, int
if (user_escaped == NULL)
user_escaped = request->hr_user;
/* expand username to ~user/ */
- asprintf(&user, "~%s/", user);
+ asprintf(&user, "~%s/", user_escaped);
if (user_escaped != request->hr_user)
free(user_escaped);
}