mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-23 12:43:18 -05:00
Fix for format string vulnerability, reported as UnprotectedHex.com advisory UPH-07-03 by nnp (no CVE yet)
This commit is contained in:
parent
e70f43e1ce
commit
1292992f6f
@ -1134,8 +1134,8 @@ void *ws_dispatcher(void *arg) {
|
||||
if((auth) && (ws_decodepassword(auth,&username, &password))) {
|
||||
if(auth_handler(pwsc,username,password))
|
||||
can_dispatch=1;
|
||||
ws_addarg(&pwsc->request_vars,"HTTP_USER",username);
|
||||
ws_addarg(&pwsc->request_vars,"HTTP_PASSWD",password);
|
||||
ws_addarg(&pwsc->request_vars,"HTTP_USER","%s",username);
|
||||
ws_addarg(&pwsc->request_vars,"HTTP_PASSWD","%s",password);
|
||||
free(username); /* this frees password too */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user