mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
raop: Fix potential NULL dereference
'realm' is mandatory Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
parent
233cb4516a
commit
0cb72beace
1 changed files with 2 additions and 2 deletions
|
|
@ -1259,13 +1259,13 @@ static void rtsp_auth_cb(pa_rtsp_client *rtsp, pa_rtsp_state_t state, pa_rtsp_st
|
|||
pa_xfree(token);
|
||||
}
|
||||
|
||||
if (pa_safe_streq(mth, "Basic")) {
|
||||
if (pa_safe_streq(mth, "Basic") && realm) {
|
||||
rtrim_char(realm, '\"');
|
||||
|
||||
pa_raop_basic_response(DEFAULT_USER_NAME, c->password, &response);
|
||||
ath = pa_sprintf_malloc("Basic %s",
|
||||
response);
|
||||
} else if (pa_safe_streq(mth, "Digest")) {
|
||||
} else if (pa_safe_streq(mth, "Digest") && realm && nonce) {
|
||||
rtrim_char(realm, '\"');
|
||||
rtrim_char(nonce, '\"');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue