mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-28 06:07:56 -04:00
Fix for remote DOS, reported as UnprotectedHex.com advisory UPH-07-01 by nnp (no CVE yet)
This commit is contained in:
parent
31bbea6109
commit
eb7b49d848
@ -815,7 +815,7 @@ int ws_getheaders(WS_CONNINFO *pwsc) {
|
|||||||
last=first;
|
last=first;
|
||||||
strsep(&last,":");
|
strsep(&last,":");
|
||||||
|
|
||||||
if(last==first) {
|
if(!last) {
|
||||||
ws_dprintf(L_WS_WARN,"Thread %d: Invalid header: %s\n",
|
ws_dprintf(L_WS_WARN,"Thread %d: Invalid header: %s\n",
|
||||||
pwsc->threadno,first);
|
pwsc->threadno,first);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user