Fix for remote DOS, reported as UnprotectedHex.com advisory UPH-07-01 by nnp (no CVE yet)

This commit is contained in:
Ron Pedde 2007-10-21 22:13:37 +00:00
parent 31bbea6109
commit eb7b49d848

View File

@ -815,7 +815,7 @@ int ws_getheaders(WS_CONNINFO *pwsc) {
last=first;
strsep(&last,":");
if(last==first) {
if(!last) {
ws_dprintf(L_WS_WARN,"Thread %d: Invalid header: %s\n",
pwsc->threadno,first);
} else {