mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
raop: Fix #36: invalid access to freed object
The RTSP client is not waiting anymore a new header after the previous one (which can never occurs if RAOP is disconnected) but after sending a command. This patch fixes Issue #36. https://github.com/hfujita/pulseaudio-raop2/issues/36
This commit is contained in:
parent
ab7b7ee249
commit
6aaf2b0a1f
1 changed files with 2 additions and 2 deletions
|
|
@ -236,7 +236,6 @@ static void line_callback(pa_ioline *line, const char *s, void *userdata) {
|
|||
|
||||
pa_log_debug("Full response received. Dispatching");
|
||||
headers_read(c);
|
||||
c->waiting = 1;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
|
@ -481,7 +480,8 @@ static int rtsp_exec(pa_rtsp_client *c, const char *cmd,
|
|||
pa_log_debug(hdrs);*/
|
||||
pa_ioline_puts(c->ioline, hdrs);
|
||||
pa_xfree(hdrs);
|
||||
|
||||
/* The command is sent we can configure the rtsp client structure to handle a new answer */
|
||||
c->waiting = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue