mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-05 10:48:09 -05:00
Fix double-free in logout
This commit is contained in:
parent
0d55a718cc
commit
35d7a9bc61
@ -253,7 +253,7 @@ int config_existdir(char *path) {
|
|||||||
void config_subst_stream(WS_CONNINFO *pwsc, int fd_src) {
|
void config_subst_stream(WS_CONNINFO *pwsc, int fd_src) {
|
||||||
int in_arg;
|
int in_arg;
|
||||||
char *argptr;
|
char *argptr;
|
||||||
char argbuffer[80];
|
char argbuffer[256];
|
||||||
char next;
|
char next;
|
||||||
CONFIGELEMENT *pce;
|
CONFIGELEMENT *pce;
|
||||||
char *first, *last;
|
char *first, *last;
|
||||||
|
@ -1187,7 +1187,6 @@ void dispatch_browse(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
|||||||
DPRINTF(E_WARN,L_DAAP|L_BROW,"Invalid browse request type %s\n",pqi->uri_sections[3]);
|
DPRINTF(E_WARN,L_DAAP|L_BROW,"Invalid browse request type %s\n",pqi->uri_sections[3]);
|
||||||
ws_returnerror(pwsc,404,"Invalid browse type");
|
ws_returnerror(pwsc,404,"Invalid browse type");
|
||||||
config_set_status(pwsc,pqi->session_id,NULL);
|
config_set_status(pwsc,pqi->session_id,NULL);
|
||||||
free(pqi);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1427,7 +1426,6 @@ void dispatch_dbinfo(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
|||||||
|
|
||||||
void dispatch_logout(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
void dispatch_logout(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
||||||
config_set_status(pwsc,pqi->session_id,NULL);
|
config_set_status(pwsc,pqi->session_id,NULL);
|
||||||
free(pqi);
|
|
||||||
ws_returnerror(pwsc,204,"Logout Successful");
|
ws_returnerror(pwsc,204,"Logout Successful");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user