1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix: Fixed check for icecast_kva_t value

This commit is contained in:
Marvin Scholz 2020-04-19 04:10:28 +02:00
parent e6856c153e
commit 386a461016

View File

@ -924,7 +924,7 @@ static inline int __find_q_in_index(icecast_kva_t *kv, size_t idx)
}
for (; i <= last; i++) {
if (kv->kv[i].key && kv->kv[i].key && strcasecmp(kv->kv[i].key, "q") == 0) {
if (kv->kv[i].key && kv->kv[i].value && strcasecmp(kv->kv[i].key, "q") == 0) {
return __parse_q(kv->kv[i].value);
}
}