fixed small mem-leak if auth failed

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1721 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Jan Kneschke 2007-04-09 16:58:13 +00:00
parent 5db109e16d
commit c3476ada45
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,6 @@ int http_auth_basic_check(server *srv, connection *con, mod_auth_plugin_data *p,
realm = (data_string *)array_get_element(req, "realm");
username = buffer_init();
password = buffer_init();
base64_decode(username, realm_str);
@ -846,6 +845,7 @@ int http_auth_basic_check(server *srv, connection *con, mod_auth_plugin_data *p,
username->used = pw - username->ptr;
password = buffer_init();
/* copy password to r1 */
if (http_auth_get_password(srv, p, username, realm->value, password)) {
buffer_free(username);