fix wrong variable

This commit is contained in:
christos 2015-10-30 23:45:31 +00:00
parent 1932f6942a
commit e3e5f7f09b
1 changed files with 2 additions and 2 deletions

View File

@ -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 code, bozo_httpreq_t *request,
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);
}